flags

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(cmd *cobra.Command)

Register sets up flags for the given cobra command to manage database migrations and configuration.

Types

type Flags

type Flags struct {
	Database string
	Config   string
	All      bool
	Group    string
}

func GetFlags

func GetFlags(cmd *cobra.Command) *Flags

GetFlags extracts and returns command-line flags from the provided cobra.Command as a Flags struct.

Jump to

Keyboard shortcuts

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