Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v2.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL