refactor: rename service_manager.go and remove unused CommandRunner interface

Rename service_manager.go to commands_service_manager.go to follow the
established naming pattern with other command files.

Remove the unused CommandRunner interface from commands.go since it's not
being used anywhere in the codebase. Clean up unused imports.

This improves consistency in file naming and removes dead code.
This commit is contained in:
Cuong Manh Le
2025-07-29 15:36:30 +07:00
committed by Cuong Manh Le
parent 7677c2fbbe
commit d5281d5df4
2 changed files with 11 additions and 25 deletions
+11
View File
@@ -21,6 +21,17 @@ import (
"github.com/Control-D-Inc/ctrld"
)
// filterEmptyStrings removes empty strings from a slice
func filterEmptyStrings(slice []string) []string {
var result []string
for _, s := range slice {
if s != "" {
result = append(result, s)
}
}
return result
}
// ServiceCommand handles service-related operations
type ServiceCommand struct {
serviceManager *ServiceManager