aboutsummaryrefslogtreecommitdiff
path: root/cmd/eno/cobra_new.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/eno/cobra_new.go')
-rw-r--r--cmd/eno/cobra_new.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/eno/cobra_new.go b/cmd/eno/cobra_new.go
index 682c122..1b079e2 100644
--- a/cmd/eno/cobra_new.go
+++ b/cmd/eno/cobra_new.go
@@ -35,6 +35,11 @@ var newCmd = &cobra.Command{
os.Exit(1)
}
+ if sshFlag && config.Conf.DefaultSSHPubPath == "" {
+ cmd.PrintErrln("Error: SSH not configured. Run 'eno ssh init' first")
+ os.Exit(1)
+ }
+
noteName := strings.Join(args, " ")
if output == "" {
if strings.ContainsRune(noteName, filepath.Separator) {