MCPcopy Create free account
hub / github.com/cortexlabs/cortex / addClusterConfigFlag

Function addClusterConfigFlag

cli/cmd/cluster.go:123–129  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

121}
122
123func addClusterConfigFlag(cmd *cobra.Command) {
124 cmd.Flags().StringVarP(&_flagClusterConfig, "config", "c", "", "path to a cluster configuration file")
125 err := cmd.Flags().SetAnnotation("config", cobra.BashCompFilenameExt, _configFileExts)
126 if err != nil {
127 exit.Error(err) // should never happen
128 }
129}
130
131func addClusterNameFlag(cmd *cobra.Command) {
132 cmd.Flags().StringVarP(&_flagClusterName, "name", "n", "", "name of the cluster")

Callers 1

clusterInitFunction · 0.85

Calls 1

ErrorFunction · 0.92

Tested by

no test coverage detected