subcmds

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DDirExist

func DDirExist(path string) bool

DDirExist checks if decldir exists

func Help

func Help(parser flags.Parser, opts HelpOpts)

func Init

func Init(gc globconf.Globconf, mopts MainOpts, opts InitOpts)

func List

func List(gc globconf.Globconf, mopts MainOpts, opts ListOpts)

func Run

func Run(gc globconf.Globconf, mopts MainOpts, opts RunOpts)

func Version

func Version(opts VersionOpts)

Types

type HelpOpts

type HelpOpts struct {
	Args struct {
		Subcommand string `` /* 235-byte string literal not displayed */
	} `positional-args:"yes"`
}

type InitOpts

type InitOpts struct {
	NoGit bool `long:"no-git" description:"Won't create the .git directory (via git init)"`
}

type ListOpts

type ListOpts struct {
	Args struct {
		Priority uint `` /* 167-byte string literal not displayed */
	} `positional-args:"yes"`
}

type MainOpts

type MainOpts struct {
	DDir     string `short:"D" long:"decldir" description:"the decldir path to operate"`
	GlobConf string `short:"C" long:"config" description:"Specify global config"`
	Version  bool   `short:"V" long:"version" description:"Gives you version info, same as subcommand version"`
	Help     bool   `short:"h" long:"help" description:"Shows help, same as subcommand help"`
}

type RunOpts

type RunOpts struct {
	Args struct {
		Priority uint `` /* 165-byte string literal not displayed */
	} `positional-args:"yes"`
}

type VersionOpts

type VersionOpts struct{}

Jump to

Keyboard shortcuts

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