app

package
v0.0.0-...-62e1b34 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type App

type App struct {
	// general flags
	Debug bool `help:"enable debug logs"`
	Force bool `help:"on init command: force file creation"`

	// Args
	Args []string `arg:"" help:"command arguments" optional:""`

	// command flags
	Init    bool `help:"create taskfile in current dir" xor:"commands"`
	Set     bool `help:"set command: '--set <name> <full command>'" xor:"commands"`
	Default bool `help:"set command as default: '--default <name>'" xor:"commands"`
	Ls      bool `help:"list available commands" xor:"commands"`
	Rm      bool `help:"remove command: '--rm <name>'" xor:"commands"`
}

type Ctx

type Ctx struct {
	Debug   bool
	Force   bool
	Handles stdio.Handles
	Logger  log.Console
	Args    []string
}

Jump to

Keyboard shortcuts

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