You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
enable version subcmd and --version flag for root cmd and all subcmds
This commit is contained in:
@@ -14,8 +14,9 @@ func init() {
|
||||
}
|
||||
|
||||
var upgradeCmd = &cobra.Command{
|
||||
Use: "upgrade",
|
||||
Short: "Upgrades an old configuration",
|
||||
Use: "upgrade",
|
||||
Version: rootCmd.Version,
|
||||
Short: "Upgrades an old configuration",
|
||||
Long: `Upgrades an old configuration. This command DOES NOT
|
||||
import share links because they are incompatible with
|
||||
this version.`,
|
||||
|
||||
Reference in New Issue
Block a user