observatorium / obsctl

A cli to interact with Observatorium instances.
Apache License 2.0
10 stars 14 forks source link

obsctl context switch should list available options #4

Closed bill3tt closed 2 years ago

bill3tt commented 2 years ago
❯ obsctl context switch
Error: accepts 1 arg(s), received 0
Usage:
  obsctl context switch [flags]

Flags:
  -h, --help   help for switch

Global Flags:
      --log.format string   Log format to use. (default "clilog")
      --log.level string    Log filtering level. (default "info")

It would be nicer developer UX if the output of this command would show the values that would be accepted by obsctl. My alternative at the moment is manually inspecting the config file :shrug:

saswatamcode commented 2 years ago

Implemented this here. 🙂

esnible commented 2 years ago

The current message is wrong; the usage is given as obsctl context switch [flags] when it should be switch <api>/<tenant>.