cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cmd provides the command line interface for mu

Index

Constants

This section is empty.

Variables

View Source
var (
	// populated by ldflags
	GitCommit string
	GitTag    string
	BuildDate string
)

Functions

func MissingCommand

func MissingCommand(_ *cli.Context) error

func New

func New() *command

func Register

func Register(cmds ...*cli.Command)

Register CLI commands

func Run

func Run()

Run the default command

func Subcommand

func Subcommand(ctx *cli.Context) string

Subcommand returns the subcommand name

func UnexpectedCommand

func UnexpectedCommand(ctx *cli.Context) error

func UnexpectedSubcommand

func UnexpectedSubcommand(ctx *cli.Context) error

UnexpectedSubcommand checks for erroneous subcommands and prints help and returns error

Types

type Cmd

type Cmd interface {
	// The cli app within this cmd
	App() *cli.App
	// Run executes the command
	Run() error
}
var (
	DefaultCmd Cmd = New()
)

Directories

Path Synopsis
Package gen provides the gen command for generating code from a mucl file
Package gen provides the gen command for generating code from a mucl file
Package gen provides the gen command for generating code from a mucl file
Package gen provides the gen command for generating code from a mucl file
Package init provides the init command for creating a new service
Package init provides the init command for creating a new service

Jump to

Keyboard shortcuts

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