Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Overview

Package cli defines the aibox command line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) int

ExitCode is the code aibox ends with after the error: the code of the command in the VM when that failed, 1 for anything else, 0 for nil.

func NewRootCommand

func NewRootCommand() *cli.Command

NewRootCommand returns the top-level aibox command.

func Printed added in v1.3.0

func Printed(err error) bool

Printed reports whether the command printed the error itself already, so that it is not printed once more.

Types

This section is empty.

Jump to

Keyboard shortcuts

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