cmd

package
v0.0.0-...-9baec58 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: BlueOak-1.0.0 Imports: 12 Imported by: 0

Documentation

Overview

This app will create some Advent of Code templates for you.

Index

Constants

View Source
const (
	// ExitSuccess when everything goes to plan.
	ExitSuccess = iota

	// ExitUnknown if the cause of the error is not defined.
	ExitUnknown

	// ExitNoCommandName if Execute is passed a zero-length string slice, without a command name as the first element.
	ExitNoCommandName

	// ExitParsingArguments if parsing arguments goes awry.
	ExitParsingArguments
)

Exit status codes returned by the root command.

Variables

View Source
var (
	ErrUnknownArguments = errors.New("unknown arguments passed in")
)

Static errors returned by the root command.

Functions

func Execute

func Execute(ctx context.Context, stdout, stderr io.Writer, args []string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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