builtin

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package builtin holds the commands that belong to no service: signing in, choosing a project, inspecting contracts.

They print through the same printer as generated commands, so -o json works on `auth status` exactly as it does on `disk list`. A wrapper program should not have to special-case them.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCompletionFailed = errors.New("cannot install completion")

	ErrUnsupportedShell = errors.New("unsupported shell")
)
View Source
var (
	ErrNoSuchContext = errors.New("no such context")

	ErrBadEndpoint = errors.New("malformed endpoint")
)
View Source
var (
	ErrNoSuchProject = errors.New("no such project")

	ErrAccountMissing = errors.New("no account contract is bundled, so projects cannot be listed")
)
View Source
var (
	ErrUpdateFailed = errors.New("cannot update")

	ErrChecksumMismatch = errors.New("checksum mismatch")

	// ErrNotWritable is separate because the fix is different: the binary is
	// somewhere the user cannot write, so a package manager or sudo owns it.
	ErrNotWritable = errors.New("cannot replace the running binary")
)
View Source
var ErrAddressNotLocal = errors.New("refusing to listen beyond this machine")
View Source
var ErrNoTokenOnStdin = errors.New("no token on stdin")

Functions

func Commands

func Commands(ext *extension.Context, root *cobra.Command, version string) []*cobra.Command

Commands returns every top-level command.

root is needed because completion is generated from the finished tree, which does not exist yet when these are built.

Types

This section is empty.

Jump to

Keyboard shortcuts

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