(deps commandDeps)
| 145 | } |
| 146 | |
| 147 | func 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 | |
| 166 | func newNetworkPeersCommand(deps commandDeps, workspaceRef *string) *cobra.Command { |
| 167 | return &cobra.Command{ |
no test coverage detected