MCPcopy Index your code
hub / github.com/cortexlabs/cortex / envInit

Function envInit

cli/cmd/env.go:36–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34)
35
36func envInit() {
37 _envConfigureCmd.Flags().SortFlags = false
38 _envConfigureCmd.Flags().StringVarP(&_flagEnvOperatorEndpoint, "operator-endpoint", "o", "", "set the operator endpoint without prompting")
39 _envCmd.AddCommand(_envConfigureCmd)
40
41 _envListCmd.Flags().SortFlags = false
42 _envListCmd.Flags().VarP(&_flagOutput, "output", "o", fmt.Sprintf("output format: one of %s", strings.Join(flags.OutputTypeStringsExcluding(flags.YAMLOutputType), "|")))
43 _envCmd.AddCommand(_envListCmd)
44
45 _envDefaultCmd.Flags().SortFlags = false
46 _envCmd.AddCommand(_envDefaultCmd)
47
48 _envRenameCmd.Flags().SortFlags = false
49 _envCmd.AddCommand(_envRenameCmd)
50
51 _envDeleteCmd.Flags().SortFlags = false
52 _envCmd.AddCommand(_envDeleteCmd)
53}
54
55var _envCmd = &cobra.Command{
56 Use: "env",

Callers 1

initFunction · 0.85

Calls 1

Tested by

no test coverage detected