cli

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the formatted version string

func SetVersionInfo

func SetVersionInfo(ver, cmt, date string)

SetVersionInfo sets the version information

Types

type CLI

type CLI struct {
	From         string   `name:"from" help:"Source directory to copy files from." type:"path" env:"AIRULE_FROM"`
	To           string   `name:"to" help:"Destination directory to copy files to." type:"path" env:"AIRULE_TO"`
	Include      []string `name:"include" short:"i" help:"Patterns to include (glob syntax, e.g. '*.go')." env:"AIRULE_INCLUDE"`
	Exclude      []string `name:"exclude" short:"e" help:"Patterns to exclude (glob syntax, e.g. '*.tmp')." env:"AIRULE_EXCLUDE"`
	SelectAll    bool     `name:"select-all" help:"Select all files matching the include/exclude patterns." env:"AIRULE_SELECT_ALL"`
	PreSelect    []string `name:"pre-select" help:"Patterns to pre-select (glob syntax, e.g. '*.go')." env:"AIRULE_PRE_SELECT"`
	Clean        bool     `` /* 126-byte string literal not displayed */
	CleanExclude []string `` /* 151-byte string literal not displayed */

	Version kong.VersionFlag `short:"v" help:"Show version and exit."`
}

CLI represents the command-line interface structure

func (*CLI) Validate

func (c *CLI) Validate() error

Validate validates the CLI arguments

Jump to

Keyboard shortcuts

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