feat: rename import to upgrade
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com> Former-commit-id: 0c8eb7bea0cdf9745385fae660532bda9368c7be [formerly 5fb38e8b21346fa41fe0602929cd4f7f6fa19fa2] [formerly 9f39ca06f86dcb7c64b69ed4227789581f140397 [formerly f39660208459a09ec145aa778f7b60d4eaf3bbec]] Former-commit-id: f310a5b4d7b1a54026dba8ccb637bf2ad5bf531a [formerly da06cb70d42ae5c2a4b0927f661b0026ae972792] Former-commit-id: 23d0481a4cb60a70ab1b59bd8042c3923d161917
This commit is contained in:
		
							parent
							
								
									981b42fb5c
								
							
						
					
					
						commit
						1133f0f826
					
				| 
						 | 
					@ -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