feat: rename import to upgrade

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
pull/612/head
Henrique Dias 2019-01-07 19:22:32 +00:00
parent 148d233d7a
commit f396602084
1 changed files with 8 additions and 8 deletions

View File

@ -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,