root

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const StaticProgramName = "character"

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(cmds ...*cobra.Command)

AddCommand is the hook used by our sub-commands to register themselves into our CLI dispatch system. Per-module init() hooks should use this.

func Cobra added in v0.6.1

func Cobra() *cobra.Command

Cobra exposes the root-level cobra object

func Errored

func Errored()

Errored bumps an error count, used to determine if the main program should exit false or not.

func Errorf added in v0.6.1

func Errorf(spec string, args ...interface{})

Errorf is a convenience for errors from other commands so that things are consistent instead of importing fmt and os all over the place

func GetErrorCount

func GetErrorCount() int

GetErrorCount is intended for use by main(), to determine how to exit.

func Start

func Start()

Start is the entry-point used by main(), after all the sub-modules have registered their availability via AddCommand calls in their init functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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