mirror of
https://github.com/jkaninda/mysql-bkup.git
synced 2025-12-07 05:59:43 +01:00
refactor: Restructure project files for better organization, readability, and maintainability
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/jkaninda/mysql-bkup/pkg"
|
||||
"github.com/jkaninda/mysql-bkup/internal"
|
||||
"github.com/jkaninda/mysql-bkup/utils"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@@ -17,7 +17,7 @@ var MigrateCmd = &cobra.Command{
|
||||
Short: "Migrate database from a source database to a target database",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if len(args) == 0 {
|
||||
pkg.StartMigration(cmd)
|
||||
internal.StartMigration(cmd)
|
||||
} else {
|
||||
utils.Fatal(`"migrate" accepts no argument %q`, args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user