From 599fa224294f8c99f5acd6db0aa654c3fd614caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B8=D0=BD=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=20?= =?UTF-8?q?=D0=A2=D0=B8=D0=BC=D1=83=D1=80=20=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=87?= Date: Thu, 20 Mar 2025 17:36:12 +0300 Subject: [PATCH] MSP-5014 Move flag package to command --- bash/autocomplete.go | 2 +- command/delete.go | 2 +- {flag => command/flag}/description.go | 0 {flag => command/flag}/structure.go | 0 command/get.go | 2 +- command/merge.go | 2 +- command/schema.go | 2 +- command/set.go | 2 +- command/status.go | 2 +- command/vars.go | 2 +- main.go | 2 +- 11 files changed, 9 insertions(+), 9 deletions(-) rename {flag => command/flag}/description.go (100%) rename {flag => command/flag}/structure.go (100%) diff --git a/bash/autocomplete.go b/bash/autocomplete.go index d7b5138..17d85fc 100644 --- a/bash/autocomplete.go +++ b/bash/autocomplete.go @@ -5,7 +5,7 @@ import ( "github.com/urfave/cli/v2" "github.com/txix-open/bellows" - "ispctl/flag" + "ispctl/command/flag" "ispctl/service" ) diff --git a/command/delete.go b/command/delete.go index 6ff61c6..484a725 100644 --- a/command/delete.go +++ b/command/delete.go @@ -6,8 +6,8 @@ import ( "github.com/tidwall/sjson" "github.com/urfave/cli/v2" "ispctl/bash" + "ispctl/command/flag" "ispctl/command/utils" - "ispctl/flag" "ispctl/service" ) diff --git a/flag/description.go b/command/flag/description.go similarity index 100% rename from flag/description.go rename to command/flag/description.go diff --git a/flag/structure.go b/command/flag/structure.go similarity index 100% rename from flag/structure.go rename to command/flag/structure.go diff --git a/command/get.go b/command/get.go index a882e78..6d557eb 100644 --- a/command/get.go +++ b/command/get.go @@ -5,8 +5,8 @@ import ( "github.com/urfave/cli/v2" "ispctl/bash" + "ispctl/command/flag" "ispctl/command/utils" - "ispctl/flag" "ispctl/service" ) diff --git a/command/merge.go b/command/merge.go index fe7ba56..3332e64 100644 --- a/command/merge.go +++ b/command/merge.go @@ -7,8 +7,8 @@ import ( "github.com/pkg/errors" "github.com/urfave/cli/v2" "ispctl/bash" + "ispctl/command/flag" "ispctl/command/utils" - "ispctl/flag" "ispctl/service" ) diff --git a/command/schema.go b/command/schema.go index 0157e76..8df0683 100644 --- a/command/schema.go +++ b/command/schema.go @@ -7,8 +7,8 @@ import ( "github.com/pkg/errors" "github.com/urfave/cli/v2" "ispctl/bash" + "ispctl/command/flag" "ispctl/command/utils" - "ispctl/flag" "ispctl/service" "ispctl/tmpl" ) diff --git a/command/set.go b/command/set.go index 0991031..f963f53 100644 --- a/command/set.go +++ b/command/set.go @@ -6,8 +6,8 @@ import ( "github.com/tidwall/sjson" "github.com/urfave/cli/v2" "ispctl/bash" + "ispctl/command/flag" "ispctl/command/utils" - "ispctl/flag" "ispctl/service" ) diff --git a/command/status.go b/command/status.go index 9990ced..72dccb7 100644 --- a/command/status.go +++ b/command/status.go @@ -7,8 +7,8 @@ import ( "github.com/olekukonko/tablewriter" "github.com/urfave/cli/v2" + "ispctl/command/flag" "ispctl/command/utils" - "ispctl/flag" "ispctl/service" ) diff --git a/command/vars.go b/command/vars.go index 50eeb79..14464a5 100644 --- a/command/vars.go +++ b/command/vars.go @@ -5,8 +5,8 @@ import ( "fmt" "ispctl/bash" "ispctl/cfg" + "ispctl/command/flag" "ispctl/command/utils" - "ispctl/flag" "ispctl/service" "os" "strings" diff --git a/main.go b/main.go index d6c5aa2..618c023 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( "github.com/urfave/cli/v2" "ispctl/command" - "ispctl/flag" + "ispctl/command/flag" ) var version = "1.1.0"