Skip to content

[Feature] pho view formats #14

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

Open
alyssadev opened this issue Jan 6, 2024 · 0 comments
Open

[Feature] pho view formats #14

alyssadev opened this issue Jan 6, 2024 · 0 comments
Labels
type: enhancement New feature or request

Comments

@alyssadev
Copy link

Use case: on investigating #13 and ways I could implement it without changing pho, I tried parsing pho view streamlink-appimage, but the output of that command is unfriendly to parsing. I'd like to propose simple and json formats for pho view.

Currently:

$ pho view streamlink-twitch-gui
>   Identifier      streamlink-twitch-gui
...

Expected:

$ pho view --format=json streamlink-twitch-gui
{"identifier": "streamlink-twitch-gui","version": "v2.4.1", ...}
$ pho view --format=json streamlink-twitch-gui | jq -r '.version'
v2.4.1
$ pho view --format=simple streamlink-twitch-gui
Identifier streamlink-twitch-gui
Version v2.4.1
...
$ pho view --format=simple streamlink-twitch-gui | grep '^Version' | awk '{print $2}'
v2.4.1
@zyrouge zyrouge added the type: enhancement New feature or request label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants