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

Function Execute

cli/cmd/root.go:151–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151func Execute() {
152 defer exit.RecoverAndExit()
153
154 cobra.EnableCommandSorting = false
155
156 _rootCmd.AddCommand(_deployCmd)
157 _rootCmd.AddCommand(_getCmd)
158 _rootCmd.AddCommand(_describeCmd)
159 _rootCmd.AddCommand(_logsCmd)
160 _rootCmd.AddCommand(_refreshCmd)
161 _rootCmd.AddCommand(_deleteCmd)
162
163 _rootCmd.AddCommand(_clusterCmd)
164
165 _rootCmd.AddCommand(_envCmd)
166 _rootCmd.AddCommand(_versionCmd)
167 _rootCmd.AddCommand(_completionCmd)
168
169 updateRootUsage()
170
171 _rootCmd.Execute()
172
173 exit.Ok()
174}
175
176func updateRootUsage() {
177 defaultUsageFunc := _rootCmd.UsageFunc()

Callers 1

mainFunction · 0.92

Calls 3

RecoverAndExitFunction · 0.92
OkFunction · 0.92
updateRootUsageFunction · 0.85

Tested by

no test coverage detected