From f39660208459a09ec145aa778f7b60d4eaf3bbec Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 7 Jan 2019 19:22:32 +0000 Subject: [PATCH] feat: rename import to upgrade License: MIT Signed-off-by: Henrique Dias --- cmd/{import.go => upgrade.go} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename cmd/{import.go => upgrade.go} (59%) diff --git a/cmd/import.go b/cmd/upgrade.go similarity index 59% rename from cmd/import.go rename to cmd/upgrade.go index 3465b64b..c0e06567 100644 --- a/cmd/import.go +++ b/cmd/upgrade.go @@ -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,