artisan

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 7 Imported by: 0

README

go-artisan

A package for creating artisan style command in golang

a prototype first, still beta, will update more later...

Documentation

Index

Constants

View Source
const (
	TagAlias    = "alias"
	TagDesc     = "desc"
	TagType     = "type"
	TagDefault  = "default"
	TagHasValue = "hasValue"
	TagRequired = "required"
	TagArray    = "array"
	TagValueArg = "arg"
	TagValueOpt = "opt"
)

Variables

View Source
var RunCommand string

Functions

func InitCommand

func InitCommand[T any](command T) (result T, err error)

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command Struct

func (*Command) GetCommand

func (c *Command) GetCommand() string

Get called command, returning string of the called command name @return string

func (*Command) SetCommand

func (c *Command) SetCommand(cmd string)

Set called command @params string cmd @return void

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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