Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
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.
func SetVersionInfo ¶ added in v2.4.2
func SetVersionInfo(version, commit, date, builtBy string)
SetVersionInfo wires the build-time version metadata (injected via -ldflags, see .goreleaser.yml) into the root command so that "synco --version" reports it. It must be called before Execute().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.