Skip to content

Commit

Permalink
Merge pull request #968 from rsteube/nushell-display
Browse files Browse the repository at this point in the history
nushell: added display
  • Loading branch information
rsteube authored Dec 30, 2023
2 parents 001cac5 + e28feee commit 4c5ed99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/shell/nushell/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

type record struct {
Value string `json:"value"`
Display string `json:"display"`
Description string `json:"description,omitempty"`
Style *nushellStyle `json:"style,omitempty"`
}
Expand Down Expand Up @@ -53,6 +54,7 @@ func ActionRawValues(currentWord string, meta common.Meta, values common.RawValu

vals[index] = record{
Value: val.Value,
Display: val.Display,
Description: val.TrimmedDescription(),
Style: convertStyle(val.Style),
}
Expand Down

0 comments on commit 4c5ed99

Please sign in to comment.