diff options
Diffstat (limited to 'cmd/eno/cobra_new.go')
| -rw-r--r-- | cmd/eno/cobra_new.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/eno/cobra_new.go b/cmd/eno/cobra_new.go index 7d46546..682c122 100644 --- a/cmd/eno/cobra_new.go +++ b/cmd/eno/cobra_new.go @@ -12,9 +12,9 @@ import ( ) var newCmd = &cobra.Command{ - Use: "new <note>", + Use: "new <note>", Short: "create a new encrypted note", - Args: cobra.MinimumNArgs(1), + Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { output, err := cmd.Flags().GetString("output") @@ -93,13 +93,14 @@ var newCmd = &cobra.Command{ } return } - + if editFlag { err = crud.NewNotePassEdit(output, config.Conf.EditorString) if err != nil { cmd.PrintErrln("Error:", err) os.Exit(1) } + return } err = crud.NewNotePass(output) |