Skip to content

support listing available clouds via cli #1916

Description

@tobiaskohlbau

In #1384 a context feature was proposed. Until this get's implemented one could workaround by combining fzf with exporting the OS_CLOUD environment variable, but this would require a list of available clouds. As the cli already knows the configuration format it would be cool to have something like osc config clouds or something similar which outputs the available clouds in line separated list by default or -o json as json array.

Alternative solution

A possible alternative solution would be to parse the clouds.yaml with something like yq and extract each individual cloud. But in general I think it makes sense to get config subcommands in the cli itself.

I've seen #1888 which proposes configuration modification, if modification is added listing makes sense, too.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions