Skip to content

Commit

Permalink
cosmetic: Hide mc admin bucket and its subcommands visible (#4905)
Browse files Browse the repository at this point in the history
Current mc admin bucket is visible under 'mc admin' however, mc admin
bucket will not show sub-commands, which is confusing.

Hide mc admin bucket and make mc admin bucket subcommands visible for
now, until removed later.
  • Loading branch information
vadmeste committed Apr 18, 2024
1 parent 58a9cb3 commit 3ec030e
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion cmd/admin-bucket-info.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ var adminBucketInfoCmd = cli.Command{
Before: setGlobalsFromContext,
Flags: append(adminBucketInfoFlags, globalFlags...),
HideHelpCommand: true,
Hidden: true,
}

// mainAdminBucketInfo is the handler for "mc admin bucket info" command.
Expand Down
1 change: 0 additions & 1 deletion cmd/admin-bucket-quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var adminBucketQuotaCmd = cli.Command{
Before: setGlobalsFromContext,
Flags: append(adminQuotaFlags, globalFlags...),
HideHelpCommand: true,
Hidden: true,
}

// mainAdminBucketQuota is the handler for "mc admin bucket quota" command.
Expand Down
1 change: 0 additions & 1 deletion cmd/admin-bucket-remote-add.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ var adminBucketRemoteAddCmd = cli.Command{
OnUsageError: onUsageError,
Before: setGlobalsFromContext,
Flags: globalFlags,
Hidden: true,
HideHelp: true,
}

Expand Down
1 change: 0 additions & 1 deletion cmd/admin-bucket-remote-edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ var adminBucketRemoteEditCmd = cli.Command{
OnUsageError: onUsageError,
Flags: globalFlags,
HideHelp: true,
Hidden: true,
}

// mainAdminBucketRemoteEdit is the handle for "mc admin bucket remote edit" command.
Expand Down
1 change: 0 additions & 1 deletion cmd/admin-bucket-remote-remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ var adminBucketRemoteRmCmd = cli.Command{
Before: setGlobalsFromContext,
Flags: globalFlags,
HideHelp: true,
Hidden: true,
}

// mainAdminBucketRemoteRemove is the handle for "mc admin bucket remote rm" command.
Expand Down
1 change: 1 addition & 0 deletions cmd/admin-bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var adminBucketCmd = cli.Command{
Flags: globalFlags,
Subcommands: adminBucketSubcommands,
HideHelpCommand: true,
Hidden: true,
}

// mainAdminBucket is the handle for "mc admin bucket" command.
Expand Down

0 comments on commit 3ec030e

Please sign in to comment.