MCPcopy
hub / github.com/dnote/dnote / preRun

Function preRun

pkg/cli/cmd/view/view.go:42–48  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

40var contentOnly bool
41
42func preRun(cmd *cobra.Command, args []string) error {
43 if len(args) > 2 {
44 return errors.New("Incorrect number of argument")
45 }
46
47 return nil
48}
49
50// NewCmd returns a new view command
51func NewCmd(ctx context.DnoteCtx) *cobra.Command {

Callers

nothing calls this directly

Calls 1

NewMethod · 0.80

Tested by

no test coverage detected