mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
refactor: move initRunCmd to dedicated commands_run.go file
Create commands_run.go following the same modular pattern as other command files. Move initRunCmd logic to InitRunCmd function with consistent naming and complete functionality preservation. Update cli.go to use InitRunCmd() instead of initRunCmd() and clean up commands.go by removing the old function and unused imports. This completes the modular refactoring pattern where each command type has its own dedicated file with focused responsibility.
This commit is contained in:
committed by
Cuong Manh Le
parent
b510fe1af5
commit
7677c2fbbe
+1
-1
@@ -127,7 +127,7 @@ func initCLI() {
|
||||
rootCmd.SetHelpCommand(&cobra.Command{Hidden: true})
|
||||
rootCmd.CompletionOptions.HiddenDefaultCmd = true
|
||||
|
||||
initRunCmd()
|
||||
InitRunCmd()
|
||||
InitServiceCmd()
|
||||
InitClientsCmd()
|
||||
InitUpgradeCmd()
|
||||
|
||||
Reference in New Issue
Block a user