command

package
v1.3.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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Command apps.SnapshotFlag = "cmd"
View Source
const (
	FLAG_HELP = "-h"
)
View Source
const InitialStep = -1

Variables

View Source
var App = apps.CommandApplication{
	CommandReference: apps.CommandReference{
		Flag:        Command,
		Name:        "go-api",
		Description: "Retrieves the project metadata",
		Example:     refHelp.Example,
	},
	Exec: root,
	Help: help,
}

Functions

func Exec

func Exec(user, input string) *apps.CmdExecResult

Types

type CmdAuxApp

type CmdAuxApp struct {
	Order int
	Flag  string
	Help  string
}

type CmdCompResult

type CmdCompResult struct {
	Message     string
	Application string
	Position    int
	Lenght      int
}

func Comp

func Comp(user, command string, position int, auxApps ...CmdAuxApp) (*CmdCompResult, error)

Directories

Path Synopsis
app
log

Jump to

Keyboard shortcuts

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