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

Function resolveNetworkWorkspaceRef

internal/cli/network.go:134–145  ·  view source on GitHub ↗
(
	cmd *cobra.Command,
	deps commandDeps,
	client DaemonClient,
	workspaceRef *string,
)

Source from the content-addressed store, hash-verified

132}
133
134func resolveNetworkWorkspaceRef(
135 cmd *cobra.Command,
136 deps commandDeps,
137 client DaemonClient,
138 workspaceRef *string,
139) (string, error) {
140 raw := ""
141 if workspaceRef != nil {
142 raw = strings.TrimSpace(*workspaceRef)
143 }
144 return resolveCLIWorkspaceRouteRef(cmd.Context(), deps, client, raw)
145}
146
147func newNetworkStatusCommand(deps commandDeps) *cobra.Command {
148 return &cobra.Command{

Calls 1

Tested by

no test coverage detected