MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / Execute

Function Execute

cli/cmd/root.go:137–142  ·  view source on GitHub ↗

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

(smartVersion SmartVersion)

Source from the content-addressed store, hash-verified

135// Execute adds all child commands to the root command and sets flags appropriately.
136// This is called by main.main(). It only needs to happen once to the rootCmd.
137func Execute(smartVersion SmartVersion) {
138
139 Version = smartVersion
140 common.SmartIDELog.Error(rootCmd.Execute())
141
142}
143
144func init() {
145 cobra.OnInitialize(initConfig)

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected