backport some fixes from main

This commit is contained in:
Nicola Murino 2021-09-30 10:18:23 +02:00
parent ae9c540640
commit 27b5f1bf59
No known key found for this signature in database
GPG key ID: 2F1FB59433D5A8CB
3 changed files with 25 additions and 1331 deletions

View file

@ -71,6 +71,7 @@ var (
)
func init() {
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.Flags().BoolP("version", "v", false, "")
rootCmd.Version = version.GetAsString()
rootCmd.SetVersionTemplate(`{{printf "SFTPGo "}}{{printf "%s" .Version}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long