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

Standardise a top level output format for all lotus CLIs #12616

Open
masih opened this issue Oct 18, 2024 · 1 comment
Open

Standardise a top level output format for all lotus CLIs #12616

masih opened this issue Oct 18, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@masih
Copy link
Member

masih commented Oct 18, 2024

Lotus CLI commands currently use a variety of formats to output information. These commands are often used by operators in scripts where a whole bunch of string manipulations are required to get to desired output.

The proposal here is to introduce a top-level flag, --output where once set it affects the output format of all sub commands, with initial support for two formats: json and text.

This way, it would be much easier to programmatically use the lotus CLIs, e.g. via pipe to jq etc.

@github-project-automation github-project-automation bot moved this to 📌 Triage in FilOz Oct 18, 2024
@masih
Copy link
Member Author

masih commented Oct 21, 2024

Also see prior work on introducing global flags: #6743

@rjan90 rjan90 added the good first issue Good for newcomers label Oct 22, 2024
@rjan90 rjan90 moved this from 📌 Triage to 🐱 Todo in FilOz Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: 🐱 Todo
Development

No branches or pull requests

2 participants