akamai / cli

Manage and configure Akamai from the Command Line.
https://techdocs.akamai.com/developer/docs/about-clis
Apache License 2.0
213 stars 85 forks source link

DXE-1749 Command completion for bash is broken #165

Closed ikuwow closed 1 year ago

ikuwow commented 2 years ago

.bashrc:

[[ $(command -v akamai) ]] && eval "$(akamai --bash)"

When I type tabs 2 times to complete available command, the output looks broken:

$ akamai # Type tab 2 times here:
(C)                                 Output                              not
(alias:                             Section                             of
(aliases:                           Set                                 pd,
(default:                           Technologies,                       pipeline
--account-key                       Usage.                              pl,
--accountkey                        Usage:                              pm,
--bash                              []                                  proddeploy,
--edgerc                            [arguments...]                      property-manager
--help                              [command                            property-manager/pipeline)
--proxy                             [global                             property-manager/property-manager)
--section                           a                                   provided
--version                           akamai                              proxy
--zsh                               auto-complete                       search
-e                                  bash                                show
-generate-auto-complete             but                                 snippets,
-s                                  command                             switch
Account                             config                              the
Akamai                              credentials                         to
CLI                                 defined:                            uninstall
Commands:                           false)                              update
Commands::                          file                                upgrade
Copyright                           flag                                use
Flags:                              flags]                              value
Global                              get)                                value,
Inc                                 help                                version
Incorrect                           install                             zsh
Installed                           key
Location                            list

Info

$ akamai --version
akamai version 1.5.2
$ echo $BASH_VERSION
5.2.0(1)-release
$ uname -a
Darwin ******** 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64 arm Darwin
mgwoj commented 2 years ago

What version of shell and OS do you use? What is the version of akamai tool?

ikuwow commented 2 years ago

Sorry for lack of information. I appended 🙏

mgwoj commented 2 years ago

Hello @ikuwow ,

Thank you for reporting this issue. We can confirm that as a bug and we will work on prioritizing it.

lkowalsk-akamai-com commented 1 year ago

Hi @ikuwow, this issue should be fixed in most recent release. Please check.

ikuwow commented 1 year ago

@lkowalsk-akamai-com Thank you so much!

$ akamai
--account-key  --help         --zsh          help           uninstall
--accountkey   --proxy        -e             install        update
--bash         --section      -s             list           upgrade
--edgerc       --version      config         search