Closed devops-rob closed 1 year ago
I found the issue. It is duplicate init funcs with the same sub command definitions. I'll fix it in the next merge
Fixed in this merge
Can confirm issue still exists for the new installation:
> target version
Current Version: 1.0.0
> target <tab><tab>
boundary
boundary (Manage Boundary context profiles)
completion (Generate the autocompletion script for the specified shell)
config
config (Configure target CLI for shell sessions)
consul
consul (Manage consul context profiles)
help (Help about any command)
nomad
nomad (Manage Nomad context profiles)
terraform
terraform (Manage Terraform context profiles)
vault
vault (Manage Vault context profiles)
version
version (Show current installed version of target-cli)
> target vault <tab><tab>
create
create (create command creates a context profile)
delete
delete (delete removes a context profile)
list
list (list all context profiles for your chosen tool)
select
select (select a context profile)
set-default
set-default (set a default context profile for Vault)
update
update (Update an existing context)
> fgrep -w VERSION /etc/os-release
VERSION="22.04.3 LTS (Jammy Jellyfish)"
and
> fgrep -w VERSION /etc/os-release
VERSION="19.3 (Tricia)"
ps: the latter is a bit outdated though is for the sake of example
The help output has duplicate entries
In this case, its list and delete that are duplicated.
This happens for Vault, Nomad and Consul sub commands