MCPcopy Create free account
hub / github.com/dnote/dnote / maybeConfirm

Function maybeConfirm

pkg/cli/cmd/remove/remove.go:73–79  ·  view source on GitHub ↗
(message string, defaultValue bool)

Source from the content-addressed store, hash-verified

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

Callers 2

runNoteFunction · 0.85
runBookFunction · 0.85

Calls 1

ConfirmFunction · 0.92

Tested by

no test coverage detected