Print feedback for `hugo genautocomplete`
authorAnthony Fok <foka@debian.org>
Thu, 6 Aug 2015 21:38:25 +0000 (15:38 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 9 Aug 2015 15:59:44 +0000 (17:59 +0200)
commands/genautocomplete.go

index d2a8704f3ac186d1e6a043384b57021b0bdea5b3..b37762e9ccdc0106c7905160e45447df6f4def68 100644 (file)
@@ -38,6 +38,8 @@ or just source them in directly:
                err := cmd.Root().GenBashCompletionFile(autocompleteTarget)
                if err != nil {
                        jww.FATAL.Fatalln("Failed to generate shell completion file:", err)
+               } else {
+                       jww.FEEDBACK.Println("Bash completion file for Hugo saved to", autocompleteTarget)
                }
        },
 }