Versions in this module Expand all Collapse all v0 v0.0.2 Jun 29, 2022 v0.0.1 Jun 29, 2022 Changes in this version + const DefaultLanguage + var BuildID string = "unknown" + func UpWhere(initialDir, marker string) (string, error) + type Command struct + Alias string + Definition string + Group string + Help string + RenderCheckCmd func(ctx context.Context) *exec.Cmd + RenderExecCmd func(ctx context.Context, f *flag.FlagSet, args ...interface{}) (*exec.Cmd, error) + SetExecFlags func(f *flag.FlagSet) + func ParseCommands(source []byte) ([]*Command, error) + func (c *Command) Check(ctx context.Context) (string, error) + func (c *Command) Execute(ctx context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus + func (c *Command) Name() string + func (c *Command) SetFlags(f *flag.FlagSet) + func (c *Command) Synopsis() string + func (c *Command) Usage() string + type CommandDefinition struct + Declaration *mdast.FencedCodeBlock + DeclarationStart int + DeclarationStop int + DeclaretionLineStart int + HeadingStart int + HeadingStop int + HelpStart int + HelpStop int + InputPath string + Name string + Source []byte + func ParseCommandDefinitions(source []byte) ([]CommandDefinition, error) + func (d *CommandDefinition) Parse() (*Command, error) + func (d *CommandDefinition) ParseCommand() string + func (d *CommandDefinition) ParseDefinition() string + func (d *CommandDefinition) ParseHelp() string + func (d *CommandDefinition) ParseInfo() (string, map[string]string) + type ShellCommand struct + Exports map[string]*ShellValue + File *syntax.File + LocalDeclarations map[string]*syntax.ParamExp + Locals map[string]*ShellValue + func NewShellCommand(shell string) (*ShellCommand, error) + func (c *ShellCommand) Print() (string, error) + func (c *ShellCommand) Render(locals map[string]*ShellValue) (string, error) + type ShellValue struct + Expression string + Literal string