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

[ENHANCEMENT] bastille list -a -j (support listing of all jails with output to JSON) #687

Open
njthomas opened this issue Mar 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@njthomas
Copy link

Is your feature request related to a problem? Please describe.
On my jail host, I have many jails, but most are not running at any given time:

bastille list lists the running jails
bastille list -a lists all the jails

I use jq to parse the JSON output like so:

bastille list -j|jq

However, I cannot combine the -j flag with -a, i.e., the following commands do not work:

bastille list -j -a # the -a is silently ignored
bastille list -a -j # the -j is silently ignored

Describe the solution you'd like

I would like to use the -j and -a flag together so that it lists all active and inactive jails, and outputs this list in JSON format.

Describe alternatives you've considered
There is a Python package called jc that takes the output of various Unix utilties and converts the output to JSON, but it currently does not support Bastille.

Additional context
[None]

@njthomas njthomas added the enhancement New feature or request label Mar 11, 2024
@njthomas njthomas changed the title [ENHANCEMENT] bastille list -a -j (support list of all jails and output to JSON format) [ENHANCEMENT] bastille list -a -j (support listing of all jails and output to JSON format) Mar 11, 2024
@njthomas njthomas changed the title [ENHANCEMENT] bastille list -a -j (support listing of all jails and output to JSON format) [ENHANCEMENT] bastille list -a -j (support listing of all jails with output to JSON format) Mar 11, 2024
@njthomas njthomas changed the title [ENHANCEMENT] bastille list -a -j (support listing of all jails with output to JSON format) [ENHANCEMENT] bastille list -a -j (support listing of all jails with output to JSON) Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant