(message string, defaultValue bool)
| 71 | } |
| 72 | |
| 73 | func maybeConfirm(message string, defaultValue bool) (bool, error) { |
| 74 | if yesFlag { |
| 75 | return true, nil |
| 76 | } |
| 77 | |
| 78 | return ui.Confirm(message, defaultValue) |
| 79 | } |
| 80 | |
| 81 | func newRun(ctx context.DnoteCtx) infra.RunEFunc { |
| 82 | return func(cmd *cobra.Command, args []string) error { |