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

Function optionalStringFlag

internal/cli/authored_context.go:823–828  ·  view source on GitHub ↗
(cmd *cobra.Command, name string, value string)

Source from the content-addressed store, hash-verified

821}
822
823func optionalStringFlag(cmd *cobra.Command, name string, value string) string {
824 if !cmd.Flags().Changed(name) {
825 return ""
826 }
827 return strings.TrimSpace(value)
828}
829
830func optionalExpectedDigestFlag(cmd *cobra.Command, expectedDigest string, ifMatchDigest string) (string, error) {
831 expectedChanged := cmd.Flags().Changed("expected-digest")

Callers 1

newAgentSoulWriteCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected