subcmd

package
v0.240109.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Support sub-commands in vender application. It's simple but fine so far. Can switch to github.com/urfave/cli later.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SdNotify

func SdNotify(s string) bool

Types

type Mod

type Mod struct {
	Name string
	Main func(context.Context, *state.Config, ...[]string) error
}

func Parse

func Parse(command string, modules []Mod) (*Mod, error)

Jump to

Keyboard shortcuts

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