Documentation
¶
Index ¶
- func RegisterAPI(rootCmd *cobra.Command)
- func RegisterCompare(rootCmd *cobra.Command)
- func RegisterCompletion(rootCmd *cobra.Command)
- func RegisterConfig(rootCmd *cobra.Command)
- func RegisterExport(rootCmd *cobra.Command)
- func RegisterImport(rootCmd *cobra.Command)
- func RegisterMigrate(rootCmd *cobra.Command)
- func RegisterVersion(rootCmd *cobra.Command)
- func SetBuildInfo(info BuildInfo)
- func WithGlobalFlags(ctx context.Context, flags GlobalFlags) context.Context
- type BuildInfo
- type GlobalFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPI ¶
RegisterAPI registers the API command and all subcommands.
func RegisterCompare ¶ added in v0.1.6
RegisterCompare registers the compare command.
func RegisterCompletion ¶
RegisterCompletion registers the completion command.
func RegisterConfig ¶
RegisterConfig registers the config command.
func RegisterExport ¶
RegisterExport registers the export command.
func RegisterImport ¶
RegisterImport registers the import command.
func RegisterMigrate ¶
RegisterMigrate registers the migrate command.
func RegisterVersion ¶
RegisterVersion registers the version command.
func SetBuildInfo ¶
func SetBuildInfo(info BuildInfo)
SetBuildInfo sets build information (called from main.go)
func WithGlobalFlags ¶
func WithGlobalFlags(ctx context.Context, flags GlobalFlags) context.Context
WithGlobalFlags adds global flags to the context.
Types ¶
type BuildInfo ¶
type BuildInfo struct {
Version string
BuildDate string
Commit string
GoVersion string
Platform string
}
BuildInfo holds build-time information
type GlobalFlags ¶
type GlobalFlags struct {
ConfigFile string
ClientID string
ClientSecret string
APIURL string
TargetClientID string
TargetClientSecret string
TargetAPIURL string
Debug bool
NoColor bool
Quiet bool
Verbose bool
}
GlobalFlags holds global CLI flags.
func GetGlobalFlags ¶
func GetGlobalFlags(ctx context.Context) GlobalFlags
GetGlobalFlags retrieves global flags from context.
Click to show internal directories.
Click to hide internal directories.