MCPcopy Create free account
hub / github.com/github/gh-aw / secretSetClientOptions

Function secretSetClientOptions

pkg/cli/secret_set_command.go:125–133  ·  view source on GitHub ↗
(apiBase string)

Source from the content-addressed store, hash-verified

123}
124
125func secretSetClientOptions(apiBase string) api.ClientOptions {
126 opts := api.ClientOptions{
127 Timeout: constants.DefaultHTTPClientTimeout,
128 }
129 if apiBase != "" {
130 opts.Host = normalizeSecretSetAPIHost(apiBase)
131 }
132 return opts
133}
134
135func normalizeSecretSetAPIHost(apiBase string) string {
136 raw := strings.TrimSpace(apiBase)

Callers 2

newSecretsSetSubcommandFunction · 0.85

Calls 1

Tested by 1