devbox icon indicating copy to clipboard operation
devbox copied to clipboard

output as json as an option

Open gedw99 opened this issue 1 year ago • 0 comments

What problem are you trying to solve?

I have fleets of servers, and need to automate it.

If we have a flag like --output jsonI could.

What solution would you like?

for example this and most of the other cli commands have --help and --quiet, and we could add --output also....


devbox -h
Instant, easy, predictable development environments

Usage:
  devbox [flags]
  devbox [command]

Available Commands:
  add         Add a new package to your devbox
  auth        Devbox auth commands
  cache       Collection of commands to interact with nix cache
  completion  Generate the autocompletion script for the specified shell
  create      Initialize a directory as a devbox project using a template
  generate    Generate supporting files for your project
  global      Manage global devbox packages
  help        Help about any command
  info        Display package info
  init        Initialize a directory as a devbox project
  install     Install all packages mentioned in devbox.json
  list        List installed packages
  rm          Remove a package from your devbox
  run         Run a script or command in a shell with access to your packages
  search      Search for nix packages
  secrets     Interact with devbox secrets in jetify cloud.
  services    Interact with devbox services.
  shell       Start a new shell with access to your packages
  shellenv    Print shell commands that create a Devbox Environment in the shell
  update      Update packages in your devbox
  version     Print version information

Flags:
  -h, --help    help for devbox
  -q, --quiet   suppresses logs

Alternatives you've considered

wrapping Devbox with a exec call and then parsing the input and output.

gedw99 avatar Sep 01 '24 00:09 gedw99