Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output as json as an option #2240

Open
gedw99 opened this issue Sep 1, 2024 · 0 comments
Open

output as json as an option #2240

gedw99 opened this issue Sep 1, 2024 · 0 comments
Labels
feature New feature or request triage Issue needs triage

Comments

@gedw99
Copy link

gedw99 commented Sep 1, 2024

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 gedw99 added feature New feature or request triage Issue needs triage labels Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage Issue needs triage
Development

No branches or pull requests

1 participant