feat: rename import to upgrade
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>pull/612/head
parent
148d233d7a
commit
f396602084
|
@ -7,17 +7,17 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(importCmd)
|
rootCmd.AddCommand(upgradeCmd)
|
||||||
|
|
||||||
importCmd.Flags().String("old.database", "", "")
|
upgradeCmd.Flags().String("old.database", "", "")
|
||||||
importCmd.Flags().String("old.config", "", "")
|
upgradeCmd.Flags().String("old.config", "", "")
|
||||||
importCmd.MarkFlagRequired("old.database")
|
upgradeCmd.MarkFlagRequired("old.database")
|
||||||
}
|
}
|
||||||
|
|
||||||
var importCmd = &cobra.Command{
|
var upgradeCmd = &cobra.Command{
|
||||||
Use: "import",
|
Use: "upgrade",
|
||||||
Short: "Imports an old configuration",
|
Short: "Upgrades an old configuration",
|
||||||
Long: `Imports an old configuration. This command DOES NOT
|
Long: `Upgrades an old configuration. This command DOES NOT
|
||||||
import share links because they are incompatible with
|
import share links because they are incompatible with
|
||||||
this version.`,
|
this version.`,
|
||||||
Args: cobra.NoArgs,
|
Args: cobra.NoArgs,
|
Loading…
Reference in New Issue