mirror of
https://github.com/jkaninda/mysql-bkup.git
synced 2025-12-06 13:39:41 +01:00
refactor: refactoring of code
This commit is contained in:
@@ -26,6 +26,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"github.com/jkaninda/mysql-bkup/internal"
|
||||
"github.com/jkaninda/mysql-bkup/pkg/logger"
|
||||
"github.com/jkaninda/mysql-bkup/utils"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@@ -38,7 +39,7 @@ var BackupCmd = &cobra.Command{
|
||||
if len(args) == 0 {
|
||||
internal.StartBackup(cmd)
|
||||
} else {
|
||||
utils.Fatal(`"backup" accepts no argument %q`, args)
|
||||
logger.Fatal(`"backup" accepts no argument %q`, args)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user