builtin

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 30 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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