diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d8753ca19..dc56c18966 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v6.10.2] – July 2026 + +### Added +- `volume create`: added the new volume performance classes `ESSENTIAL`, `BALANCED` and `PERFORMANCE` to `--type` shell completion. + +### Fixed +- `volume create`: `--type` now provides shell completion for the available volume types. + ## [v6.10.1] – May 2026 ### Added diff --git a/commands/compute/volume/create.go b/commands/compute/volume/create.go index 1945aa7f76..5afdb83dd5 100644 --- a/commands/compute/volume/create.go +++ b/commands/compute/volume/create.go @@ -51,8 +51,8 @@ ionosctl compute volume create --datacenter-id DATACENTER_ID --name NAME --image }) cmd.AddSetFlag(cloudapiv6.ArgLicenceType, "", "LINUX", constants.EnumLicenceType, "Licence Type of the Volume") cmd.AddStringFlag(constants.FlagType, "", "HDD", "Type of the Volume") - _ = cmd.Command.RegisterFlagCompletionFunc(cloudapiv6.ArgLicenceType, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { - return []string{"HDD", "SSD", "SSD Standard", "SSD Premium"}, cobra.ShellCompDirectiveNoFileComp + _ = cmd.Command.RegisterFlagCompletionFunc(constants.FlagType, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { + return []string{"HDD", "SSD", "SSD Standard", "SSD Premium", "ESSENTIAL", "BALANCED", "PERFORMANCE"}, cobra.ShellCompDirectiveNoFileComp }) cmd.AddStringFlag(constants.FlagAvailabilityZone, constants.FlagAvailabilityZoneShort, "AUTO", "Availability zone of the Volume. Storage zone can only be selected prior provisioning") _ = cmd.Command.RegisterFlagCompletionFunc(constants.FlagAvailabilityZone, func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {