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

Provide CLI output in json format #444

Open
fginther opened this issue Jan 10, 2025 · 1 comment
Open

Provide CLI output in json format #444

fginther opened this issue Jan 10, 2025 · 1 comment

Comments

@fginther
Copy link

Please provide an option to output the results of a CLI command in json format. For example:

# testflinger list-queues
ATTENTION: This only shows a curated list of queues with descriptions, not ALL queues. If you can't find the queue you want to use, a job can still be submitted for queues not listed here.

Advertised queues on this server:
 201507-18697 - Dell Latitude E5570: Intel 8086:24f3 wifi, Core i5-6300U, dGPU AMD 1002:6900
 201606-22346 - Dell XPS 15 9550: Broadcom 14e4:43ba wifi, Core i7-6700HQ, dGPU nVidia 10de:139b
 201810-26513 - HP Z4 G4 Workstation - Z4 G4, ) XeonR W-2145 CPU, nVidia - 10de:1b30 GPU
 caracalla-gpa - Dell Caracalla (gpa sku)
...
# testflinger --output json list-queues
[
    {
        "queue": "201507-18697",
        "description": "Dell Latitude E5570: Intel 8086:24f3 wifi, Core i5-6300U, dGPU AMD 1002:6900"
    },
    {
        "queue": "201606-22346",
        "description": "Dell XPS 15 9550: Broadcom 14e4:43ba wifi, Core i7-6700HQ, dGPU nVidia 10de:139b"
    },
...
]
Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CERTTF-478.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant