From 1133f0f82629dc5fe631e597303973cd24e3e4a8 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 Former-commit-id: 0c8eb7bea0cdf9745385fae660532bda9368c7be [formerly 5fb38e8b21346fa41fe0602929cd4f7f6fa19fa2] [formerly 9f39ca06f86dcb7c64b69ed4227789581f140397 [formerly f39660208459a09ec145aa778f7b60d4eaf3bbec]] Former-commit-id: f310a5b4d7b1a54026dba8ccb637bf2ad5bf531a [formerly da06cb70d42ae5c2a4b0927f661b0026ae972792] Former-commit-id: 23d0481a4cb60a70ab1b59bd8042c3923d161917 --- 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,