Skip to content

Commit

Permalink
feat(confirm): add --show-output model
Browse files Browse the repository at this point in the history
  • Loading branch information
vahnrr committed Dec 12, 2024
1 parent d2af46a commit 3d74294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions confirm/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func (o Options) Run() error {
m := model{
affirmative: o.Affirmative,
negative: o.Negative,
showOutput: o.ShowOutput,
confirmation: o.Default,
defaultSelection: o.Default,
keys: defaultKeymap(o.Affirmative, o.Negative),
Expand Down
1 change: 1 addition & 0 deletions confirm/confirm.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ type model struct {
help help.Model
keys keymap

showOutput bool
confirmation bool

defaultSelection bool
Expand Down

0 comments on commit 3d74294

Please sign in to comment.