mirror of
https://github.com/jkaninda/mysql-bkup.git
synced 2026-01-23 12:59:03 +01:00
refactore: refactoring of code
This commit is contained in:
@@ -30,9 +30,6 @@ func Execute() {
|
||||
}
|
||||
|
||||
func init() {
|
||||
// Here you will define your flags and configuration settings.
|
||||
// Cobra supports persistent flags, which, if defined here,
|
||||
// will be global for your application.
|
||||
|
||||
// rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.mysql-bkup.yaml)")
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ var VersionCmd = &cobra.Command{
|
||||
},
|
||||
}
|
||||
|
||||
// Version display application version
|
||||
func Version() {
|
||||
fmt.Printf("Version: %s \n", appVersion)
|
||||
fmt.Print()
|
||||
|
||||
Reference in New Issue
Block a user