mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
feat: add uc ps command to list all containers in the cluster (#165)
* feat: Add `uc ps` command to list all containers in the cluster * Fix indentation * Improvements to the container state highlights code (use enum, better var naming) * Add group/sort option by "health" * Rename `uc ps --group-by` flag to `--sort`. Also, remove `--context` flag. * Use huh.spinner with standard style/type * Remove pointless TrimPrefix on container name * Move machine lookup out of services loop * Use more efficient `ListServiceContainers` * Use consistent header other * Use api.ProxyMachinesContext helper for context to query all machines for service containers * Make errored MachineServiceContainer entries a warning, not return an error immediately, in `uc ps` * Use lipgloss table instead of tabwriter for "uc ps" command * Handle nil metadata in `uc ps` on container when cluster only has one machine
This commit is contained in:
@@ -9,9 +9,10 @@ require (
|
||||
github.com/alecthomas/chroma/v2 v2.20.0
|
||||
github.com/caddyserver/caddy/v2 v2.8.4
|
||||
github.com/cenkalti/backoff/v4 v4.3.0
|
||||
github.com/charmbracelet/bubbles v0.20.0
|
||||
github.com/charmbracelet/bubbletea v1.3.9
|
||||
github.com/charmbracelet/bubbles v0.21.0
|
||||
github.com/charmbracelet/bubbletea v1.3.10
|
||||
github.com/charmbracelet/huh v0.6.0
|
||||
github.com/charmbracelet/huh/spinner v0.0.0-20251110114415-25888d17260b
|
||||
github.com/charmbracelet/lipgloss v1.1.0
|
||||
github.com/compose-spec/compose-go/v2 v2.9.0
|
||||
github.com/containerd/errdefs v1.0.0
|
||||
|
||||
Reference in New Issue
Block a user