From 8c8472b5107885dfabba3ac4bc79d89bbd0e2e51 Mon Sep 17 00:00:00 2001 From: dhernando Date: Thu, 2 Apr 2026 17:08:07 +0200 Subject: [PATCH 1/2] chore(iam): rename the access root command to iam, closer to the api and shorter --- internal/cli/root.go | 4 ++-- internal/cmd/{access/access.go => iam/iam.go} | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) rename internal/cmd/{access/access.go => iam/iam.go} (51%) diff --git a/internal/cli/root.go b/internal/cli/root.go index b642259..76b0190 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/qdrant/qcloud-cli/internal/cmd/access" + "github.com/qdrant/qcloud-cli/internal/cmd/iam" "github.com/qdrant/qcloud-cli/internal/cmd/backup" "github.com/qdrant/qcloud-cli/internal/cmd/cloudprovider" "github.com/qdrant/qcloud-cli/internal/cmd/cloudregion" @@ -66,7 +66,7 @@ Documentation: https://github.com/qdrant/qcloud-cli`, s.Config.BindPFlag(config.KeyEndpoint, cmd.PersistentFlags().Lookup("endpoint")) cmd.AddCommand(version.NewCommand(s)) - cmd.AddCommand(access.NewCommand(s)) + cmd.AddCommand(iam.NewCommand(s)) cmd.AddCommand(cluster.NewCommand(s)) cmd.AddCommand(cloudprovider.NewCommand(s)) cmd.AddCommand(cloudregion.NewCommand(s)) diff --git a/internal/cmd/access/access.go b/internal/cmd/iam/iam.go similarity index 51% rename from internal/cmd/access/access.go rename to internal/cmd/iam/iam.go index 4cd12d9..4113e3e 100644 --- a/internal/cmd/access/access.go +++ b/internal/cmd/iam/iam.go @@ -1,4 +1,4 @@ -package access +package iam import ( "github.com/spf13/cobra" @@ -6,12 +6,12 @@ import ( "github.com/qdrant/qcloud-cli/internal/state" ) -// NewCommand creates the access command group. +// NewCommand creates the iam command group. func NewCommand(s *state.State) *cobra.Command { cmd := &cobra.Command{ - Use: "access", - Short: "Manage access to Qdrant Cloud", - Long: `Manage access settings for the Qdrant Cloud account.`, + Use: "iam", + Short: "Manage IAM resources in Qdrant Cloud", + Long: `Manage IAM resources for the Qdrant Cloud account.`, Args: cobra.NoArgs, } return cmd From 206349234297b9ca1fc882e799cc17b7a7deca1c Mon Sep 17 00:00:00 2001 From: dhernando Date: Thu, 2 Apr 2026 17:09:43 +0200 Subject: [PATCH 2/2] chore: code format --- internal/cli/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/root.go b/internal/cli/root.go index 76b0190..ccc784a 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -5,13 +5,13 @@ import ( "github.com/spf13/cobra" - "github.com/qdrant/qcloud-cli/internal/cmd/iam" "github.com/qdrant/qcloud-cli/internal/cmd/backup" "github.com/qdrant/qcloud-cli/internal/cmd/cloudprovider" "github.com/qdrant/qcloud-cli/internal/cmd/cloudregion" "github.com/qdrant/qcloud-cli/internal/cmd/cluster" contextcmd "github.com/qdrant/qcloud-cli/internal/cmd/context" "github.com/qdrant/qcloud-cli/internal/cmd/hybrid" + "github.com/qdrant/qcloud-cli/internal/cmd/iam" packagecmd "github.com/qdrant/qcloud-cli/internal/cmd/package" "github.com/qdrant/qcloud-cli/internal/cmd/selfupgrade" "github.com/qdrant/qcloud-cli/internal/cmd/version"