MCPcopy
hub / github.com/cortexlabs/cortex / printEnvIfNotSpecified

Function printEnvIfNotSpecified

cli/cmd/root.go:212–223  ·  view source on GitHub ↗
(envName string, cmd *cobra.Command)

Source from the content-addressed store, hash-verified

210}
211
212func printEnvIfNotSpecified(envName string, cmd *cobra.Command) error {
213 out, err := envStringIfNotSpecified(envName, cmd)
214 if err != nil {
215 return err
216 }
217
218 if out != "" {
219 fmt.Print(out)
220 }
221
222 return nil
223}
224
225func envStringIfNotSpecified(envName string, cmd *cobra.Command) (string, error) {
226 envNames, err := listConfiguredEnvNames()

Callers 5

logs.goFile · 0.85
refresh.goFile · 0.85
delete.goFile · 0.85
deploy.goFile · 0.85
version.goFile · 0.85

Calls 2

envStringIfNotSpecifiedFunction · 0.85
PrintMethod · 0.45

Tested by

no test coverage detected