cmd: improve completion sub-commands

This commit is contained in:
Nicola Murino
2021-10-03 08:14:57 +02:00
parent cc134cad9a
commit 22d28a37b6
10 changed files with 91 additions and 57 deletions

View File

@@ -16,10 +16,11 @@ var (
manDir string
genManCmd = &cobra.Command{
Use: "man",
Short: "Generate man pages for SFTPGo CLI",
Short: "Generate man pages for sftpgo",
Long: `This command automatically generates up-to-date man pages of SFTPGo's
command-line interface. By default, it creates the man page files
in the "man" directory under the current directory.
command-line interface.
By default, it creates the man page files in the "man" directory under the
current directory.
`,
Run: func(cmd *cobra.Command, args []string) {
logger.DisableLogger()