commands

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAPI

func RegisterAPI(rootCmd *cobra.Command)

RegisterAPI registers the API command and all subcommands.

func RegisterCompare added in v0.1.6

func RegisterCompare(rootCmd *cobra.Command)

RegisterCompare registers the compare command.

func RegisterCompletion

func RegisterCompletion(rootCmd *cobra.Command)

RegisterCompletion registers the completion command.

func RegisterConfig

func RegisterConfig(rootCmd *cobra.Command)

RegisterConfig registers the config command.

func RegisterExport

func RegisterExport(rootCmd *cobra.Command)

RegisterExport registers the export command.

func RegisterImport

func RegisterImport(rootCmd *cobra.Command)

RegisterImport registers the import command.

func RegisterMigrate

func RegisterMigrate(rootCmd *cobra.Command)

RegisterMigrate registers the migrate command.

func RegisterVersion

func RegisterVersion(rootCmd *cobra.Command)

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.

Jump to

Keyboard shortcuts

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