cli

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Generate   = "generate"
	New        = "new <module-name>"
	Run        = "run <command-name>"
	RunArgs    = "run <command-name> <args>"
	Show       = "show"
	Index      = "index"
	Impl       = "impl"
	ImplTarget = "impl <target>"
	Check      = "check"
	Tools      = "tools"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Generate struct {
	} `cmd:"" help:"Generate code"`
	New struct {
		ModuleName string `arg:"" help:"Module name"`
		Cmd        bool   `cmd:"" help:"Create a new command"`
		Proto      bool   `cmd:"" help:"Create a new proto"`
	} `cmd:"" help:"Create a new project"`
	Run struct {
		CommandName string   `arg:"" help:"Command name"`
		Args        []string `arg:"" optional:"" help:"Command arguments"`
	} `cmd:"" help:"Run a command"`
	Show struct {
		Imports bool `cmd:"" help:"Show import cycle"`
	} `cmd:"" help:"Show information"`
	Index struct {
	} `cmd:"" help:"Index the project"`
	Impl struct {
		Interactive bool     `cmd:"" help:"Interactive mode"`
		Target      []string `arg:"" optional:"" help:"Implement interfaces"`
	} `cmd:"" help:"Implement interfaces"`
	Check struct {
	} `cmd:"" help:"Check the project"`
	Tools struct {
		Renew   bool `cmd:"" help:"Renew tools registry"`
		Install bool `cmd:"" help:"Install tool"`
		Multi   bool `cmd:"" help:"Install multiple tools"`
	} `cmd:"" help:"Search and install tools"`
}

Jump to

Keyboard shortcuts

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