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 e4689b9e [dubboctl] try ci errors fix
e4689b9e is described below
commit e4689b9eb9ec2422ef58b9b1d0cefe16ace69932
Author: mfordjody <[email protected]>
AuthorDate: Wed Oct 30 12:58:52 2024 +0800
[dubboctl] try ci errors fix
---
dubboctl/{pkg/profile => cmd}/profile.go | 9 +++++----
dubboctl/cmd/root.go | 3 +--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dubboctl/pkg/profile/profile.go b/dubboctl/cmd/profile.go
similarity index 83%
rename from dubboctl/pkg/profile/profile.go
rename to dubboctl/cmd/profile.go
index 16382d9c..3f4d2ce8 100644
--- a/dubboctl/pkg/profile/profile.go
+++ b/dubboctl/cmd/profile.go
@@ -13,20 +13,21 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package profile
+package cmd
import (
+ "github.com/apache/dubbo-kubernetes/dubboctl/pkg/profile"
"github.com/spf13/cobra"
)
-func AddProfile(rootCmd *cobra.Command) {
+func addProfile(rootCmd *cobra.Command) {
profileCmd := &cobra.Command{
Use: "profile",
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/root.go b/dubboctl/cmd/root.go
index 3e00bea0..aa399c34 100644
--- a/dubboctl/cmd/root.go
+++ b/dubboctl/cmd/root.go
@@ -20,7 +20,6 @@ import (
"github.com/apache/dubbo-kubernetes/dubboctl/pkg/deploy"
"github.com/apache/dubbo-kubernetes/dubboctl/pkg/generate"
"github.com/apache/dubbo-kubernetes/dubboctl/pkg/manifest"
- "github.com/apache/dubbo-kubernetes/dubboctl/pkg/profile"
"github.com/apache/dubbo-kubernetes/dubboctl/pkg/proxy"
"github.com/apache/dubbo-kubernetes/dubboctl/pkg/registry"
)
@@ -91,7 +90,7 @@ func addSubCommands(rootCmd *cobra.Command, newClient
deploy.ClientFactory) {
deploy.AddDeploy(rootCmd, newClient)
manifest.AddManifest(rootCmd)
generate.AddGenerate(rootCmd)
- profile.AddProfile(rootCmd)
+ addProfile(rootCmd)
dashboard.AddDashboard(rootCmd)
registry.AddRegistryCmd(rootCmd)
proxy.AddProxy(cmd2.DefaultRunCmdOpts, rootCmd)