cli

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteScript

func ExecuteScript(ctx context.Context, pack *pack.Pack, alias string)

func PrintAliases

func PrintAliases(args *Args, pack *pack.Pack)

func RunTuiApp

func RunTuiApp(ctx context.Context, pack *pack.Pack)

Types

type Args

type Args struct {
	Config  string `arg:"-c,--config" default:"./commandPack.toml" help:"path to config file"`
	Script  string `arg:"-s,--script" help:"run script by the alias"`
	Aliases bool   `arg:"-a,--aliases" help:"print list of aliases for available scripts"`
}

func GetArgs

func GetArgs() *Args

Jump to

Keyboard shortcuts

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