MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / isBasepathParameterized

Function isBasepathParameterized

commands/api.go:136–146  ·  view source on GitHub ↗
(basepath string)

Source from the content-addressed store, hash-verified

134}
135
136func isBasepathParameterized(basepath string) (error, bool) {
137 hasParams, err := hasPathParameters(basepath)
138 if hasParams || err != nil {
139 errMsg := wski18n.T("The base path '{{.path}}' cannot have parameters. Only the relative path supports path parameters.",
140 map[string]interface{}{"path": basepath})
141 whiskErr := whisk.MakeWskError(errors.New(errMsg), whisk.EXIT_CODE_ERR_GENERAL,
142 whisk.DISPLAY_MSG, whisk.DISPLAY_USAGE)
143 return whiskErr, false
144 }
145 return nil, true
146}
147
148/*
149 * Pull the managedUrl (external API URL) from the API configuration

Callers 1

parseApiFunction · 0.85

Calls 1

hasPathParametersFunction · 0.85

Tested by

no test coverage detected