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

CLI Node List Command #417

Draft
wants to merge 7 commits into
base: v3
Choose a base branch
from
Draft

CLI Node List Command #417

wants to merge 7 commits into from

Conversation

jordan-rash
Copy link
Contributor

Depends on #416

└─❯ go run . node ls
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                NATS Execution Nodes                                                               │
├───────┬──────────────────────────────────────────────────────────┬──────┬─────────┬────────┬───────────┬──────────────────────────┬───────┬───────┤
│ Nexus │ ID (* = Lameduck Mode)                                   │ Name │ Version │ Agents │ Workloads │ Uptime                   │ OS    │ Arch  │
├───────┼──────────────────────────────────────────────────────────┼──────┼─────────┼────────┼───────────┼──────────────────────────┼───────┼───────┤
│ nexus │ NCSVIPV2DPAGO6UVTXHPB536KQXSXXMM3NYWEO2EXEAPNPGP7WAJIHMD │ derp │ 0.0.0   │      1 │ 0         │ 2562047h47m16.854775807s │ linux │ amd64 │
╰───────┴──────────────────────────────────────────────────────────┴──────┴─────────┴────────┴───────────┴──────────────────────────┴───────┴───────╯


└─❯ go run . node ls --filter nex.node=derp
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                NATS Execution Nodes                                                               │
├───────┬──────────────────────────────────────────────────────────┬──────┬─────────┬────────┬───────────┬──────────────────────────┬───────┬───────┤
│ Nexus │ ID (* = Lameduck Mode)                                   │ Name │ Version │ Agents │ Workloads │ Uptime                   │ OS    │ Arch  │
├───────┼──────────────────────────────────────────────────────────┼──────┼─────────┼────────┼───────────┼──────────────────────────┼───────┼───────┤
│ nexus │ NCSVIPV2DPAGO6UVTXHPB536KQXSXXMM3NYWEO2EXEAPNPGP7WAJIHMD │ derp │ 0.0.0   │      1 │ 0         │ 2562047h47m16.854775807s │ linux │ amd64 │
╰───────┴──────────────────────────────────────────────────────────┴──────┴─────────┴────────┴───────────┴──────────────────────────┴───────┴───────╯

└─❯ go run . node ls --filter nex.node=derp --json
[{"nexus":"nexus","node_id":"NCSVIPV2DPAGO6UVTXHPB536KQXSXXMM3NYWEO2EXEAPNPGP7WAJIHMD","running_agents":{"status":{"direct_start":0}},"tags":{"tags":{"nex.arch":"amd64","nex.cpucount":"20","nex.lameduck":"false","nex.nexus":"nexus","nex.node":"derp","nex.os":"linux"}},"target_xkey":"","uptime":"2562047h47m16.854775807s","version":"0.0.0"}]

Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant