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

Function newBundleNetworkSettingsCommand

internal/cli/bundle.go:235–251  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

233}
234
235func newBundleNetworkSettingsCommand(deps commandDeps) *cobra.Command {
236 return &cobra.Command{
237 Use: "network-settings",
238 Short: "Show bundle-derived network settings",
239 RunE: func(cmd *cobra.Command, _ []string) error {
240 client, err := clientFromDeps(deps)
241 if err != nil {
242 return err
243 }
244 settings, err := client.BundleNetworkSettings(cmd.Context())
245 if err != nil {
246 return err
247 }
248 return writeCommandOutput(cmd, bundleNetworkSettingsBundle(settings))
249 },
250 }
251}
252
253func addBundleActivationFlags(cmd *cobra.Command, flags *bundleActivationFlags) {
254 cmd.Flags().StringVar(&flags.extensionName, bundleExtensionKey, "", "Extension name")

Callers 1

newBundleCommandFunction · 0.85

Calls 4

clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
BundleNetworkSettingsMethod · 0.65

Tested by

no test coverage detected