(cmd *cobra.Command, args []string)
| 40 | var contentOnly bool |
| 41 | |
| 42 | func 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 |
| 51 | func NewCmd(ctx context.DnoteCtx) *cobra.Command { |