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

Add json output to pipe list #171

Open
tionis opened this issue Dec 5, 2024 · 0 comments
Open

Add json output to pipe list #171

tionis opened this issue Dec 5, 2024 · 0 comments

Comments

@tionis
Copy link

tionis commented Dec 5, 2024

I'd like to reliably parse the output of pipe ls.
Currently it's looking something like this:

$ ssh pipe ls
- user-name/channel-name:
  Clients:
    Pubs:
    - 12ab12ab-12ab-12ab-12ab-12ab12ab12ab (key@[email protected]:4567)

and I thought something like that would be nice:

$ ssh pipe ls --json # for --format json
{
  "user-name/channel-name":
  {
    "clients": {
      "pubs": [
        {"id": "12ab12ab-12ab-12ab-12ab-12ab12ab12ab", "key": "key@node", "ip": "123.123.123.123:4567"}
      ]
    }
  }
}
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