This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 13f72fe9 [dubboctl] Reorganize the directory structure profile (#495)
13f72fe9 is described below
commit 13f72fe97056c11dbc28e564a1328e2053bc2b09
Author: mfordjody <[email protected]>
AuthorDate: Tue Oct 29 12:05:49 2024 +0800
[dubboctl] Reorganize the directory structure profile (#495)
---
dubboctl/cmd/profile.go | 5 +++--
dubboctl/{cmd => pkg/profile}/profile_diff.go | 2 +-
dubboctl/{cmd => pkg/profile}/profile_list.go | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dubboctl/cmd/profile.go b/dubboctl/cmd/profile.go
index a59cf2eb..3f4d2ce8 100644
--- a/dubboctl/cmd/profile.go
+++ b/dubboctl/cmd/profile.go
@@ -16,6 +16,7 @@
package cmd
import (
+ "github.com/apache/dubbo-kubernetes/dubboctl/pkg/profile"
"github.com/spf13/cobra"
)
@@ -25,8 +26,8 @@ func addProfile(rootCmd *cobra.Command) {
Short: "Commands related to profiles",
Long: "Commands help user to list and describe profiles",
}
- ConfigProfileListCmd(profileCmd)
- ConfigProfileDiffCmd(profileCmd)
+ profile.ConfigProfileListCmd(profileCmd)
+ profile.ConfigProfileDiffCmd(profileCmd)
rootCmd.AddCommand(profileCmd)
}
diff --git a/dubboctl/cmd/profile_diff.go b/dubboctl/pkg/profile/profile_diff.go
similarity index 99%
rename from dubboctl/cmd/profile_diff.go
rename to dubboctl/pkg/profile/profile_diff.go
index 8080601e..9d243b7f 100644
--- a/dubboctl/cmd/profile_diff.go
+++ b/dubboctl/pkg/profile/profile_diff.go
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package cmd
+package profile
import (
"errors"
diff --git a/dubboctl/cmd/profile_list.go b/dubboctl/pkg/profile/profile_list.go
similarity index 99%
rename from dubboctl/cmd/profile_list.go
rename to dubboctl/pkg/profile/profile_list.go
index 695f1a78..5a9ad723 100644
--- a/dubboctl/cmd/profile_list.go
+++ b/dubboctl/pkg/profile/profile_list.go
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package cmd
+package profile
import (
"errors"