instance

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandBuilders

func AddCommandBuilders(fns ...func() *cobra.Command)

func AddCommands

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

func AppName

func AppName() string

AppName is what the app will call itself. When customizing, overwrite it before calling Main().

func CheckCanCustomize added in v0.5.0

func CheckCanCustomize()

CheckCanCustomize panics if customizations have been locked down at this point in the app startup process.

Use this as a guard / assertion in functions that try to change customizations to ensure they are not called from the wrong place where they may be ineffectual or cause errors.

func CheckLockedDown added in v0.5.0

func CheckLockedDown()

CheckLockedDown panics if customizations have not been locked down at this point in the app startup process.

Use this as a guard / assertion in functions that put customizations into effect to ensure that they are not called from places where customizations may be modified later and thus break or prevent those future modifications.

func Commands

func Commands() []*cobra.Command

Commands gets a list of additional commands to add to the fastcat.org/go/gdev/cmd/Root command during app startup.

This will panic if called during the customization phase before the main app startup.

To add custom commands, use AddCommandBuilders or AddCommands

func SetAppName

func SetAppName(name string)

func Version

func Version() string

func VersionInfo

func VersionInfo() versionInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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