Skip to content

[Improvement] Silent flag for API calls #109

@darkspirit510

Description

@darkspirit510

Hi all,
i'm passing CLI JSON results to jq. A few months ago I created some scripts that were able to trim the header (something like CLI has been refactored...). Now my scripts don't work anymore because the header changed:

Calling: caprover api -t "/user/apps/appDefinitions/" -m GET -d "{}" results in

Call generic CapRover API [Experimental Feature]...

Ensuring authentication...
API call completed successfully!

{
  "appDefinitions": [
    {
[...]

Which (without trimming) of course make jq complain since this is no JSON. Can you please add a silent flag (something like -s) to get rid of everything except JSON? Thank you :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions