From 00d137d05c6281304724df50cb32e9aed091a122 Mon Sep 17 00:00:00 2001 From: yusing Date: Mon, 22 Sep 2025 17:18:53 +0800 Subject: [PATCH] refactor: remove obsolete args.go --- internal/common/args.go | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 internal/common/args.go diff --git a/internal/common/args.go b/internal/common/args.go deleted file mode 100644 index 758bfb5f..00000000 --- a/internal/common/args.go +++ /dev/null @@ -1,31 +0,0 @@ -package common - -const ( - CommandStart = "" - CommandValidate = "validate" - CommandListConfigs = "ls-config" - CommandListRoutes = "ls-routes" - CommandListIcons = "ls-icons" - CommandReload = "reload" - CommandDebugListEntries = "debug-ls-entries" - CommandDebugListProviders = "debug-ls-providers" - CommandDebugListMTrace = "debug-ls-mtrace" -) - -type MainServerCommandValidator struct{} - -func (v MainServerCommandValidator) IsCommandValid(cmd string) bool { - switch cmd { - case CommandStart, - CommandValidate, - CommandListConfigs, - CommandListRoutes, - CommandListIcons, - CommandReload, - CommandDebugListEntries, - CommandDebugListProviders, - CommandDebugListMTrace: - return true - } - return false -}