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

Function newBridgeGetCommand

internal/cli/bridge.go:112–130  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

110}
111
112func newBridgeGetCommand(deps commandDeps) *cobra.Command {
113 return &cobra.Command{
114 Use: bridgeGetIDValue,
115 Short: "Show one bridge instance",
116 Args: exactOneNonBlankArg(),
117 RunE: func(cmd *cobra.Command, args []string) error {
118 client, err := clientFromDeps(deps)
119 if err != nil {
120 return err
121 }
122
123 item, err := client.GetBridge(cmd.Context(), args[0])
124 if err != nil {
125 return err
126 }
127 return writeCommandOutput(cmd, bridgeBundle(item))
128 },
129 }
130}
131
132func newBridgeCreateCommand(deps commandDeps) *cobra.Command {
133 var (

Callers 1

newBridgeCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
bridgeBundleFunction · 0.85
GetBridgeMethod · 0.65

Tested by

no test coverage detected