feat: rename import to upgrade

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias 2019-01-07 19:22:32 +00:00
parent 148d233d7a
commit f396602084

View File

@ -7,17 +7,17 @@ import (
)
func init() {
rootCmd.AddCommand(importCmd)
rootCmd.AddCommand(upgradeCmd)
importCmd.Flags().String("old.database", "", "")
importCmd.Flags().String("old.config", "", "")
importCmd.MarkFlagRequired("old.database")
upgradeCmd.Flags().String("old.database", "", "")
upgradeCmd.Flags().String("old.config", "", "")
upgradeCmd.MarkFlagRequired("old.database")
}
var importCmd = &cobra.Command{
Use: "import",
Short: "Imports an old configuration",
Long: `Imports an old configuration. This command DOES NOT
var upgradeCmd = &cobra.Command{
Use: "upgrade",
Short: "Upgrades an old configuration",
Long: `Upgrades an old configuration. This command DOES NOT
import share links because they are incompatible with
this version.`,
Args: cobra.NoArgs,