MCPcopy Create free account
hub / github.com/compozy/agh / newNetworkStatusCommand

Function newNetworkStatusCommand

internal/cli/network.go:147–164  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

145}
146
147func newNetworkStatusCommand(deps commandDeps) *cobra.Command {
148 return &cobra.Command{
149 Use: networkStatusKey,
150 Short: "Show network runtime status and queue metrics",
151 RunE: func(cmd *cobra.Command, _ []string) error {
152 client, err := clientFromDeps(deps)
153 if err != nil {
154 return err
155 }
156
157 status, err := client.NetworkStatus(cmd.Context())
158 if err != nil {
159 return err
160 }
161 return writeCommandOutput(cmd, networkStatusBundle(status))
162 },
163 }
164}
165
166func newNetworkPeersCommand(deps commandDeps, workspaceRef *string) *cobra.Command {
167 return &cobra.Command{

Callers 1

newNetworkCommandFunction · 0.85

Calls 4

clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
networkStatusBundleFunction · 0.85
NetworkStatusMethod · 0.65

Tested by

no test coverage detected