cmd

package
v0.0.0-...-2f78cd6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 12 Imported by: 91

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLog = &cmd.Log{
	DefaultConfig: os.Getenv(osenv.JujuLoggingConfigEnvKey),
}

DefaultLog is the default command logging implementation.

Functions

func Info

func Info(i *cmd.Info) *cmd.Info

func IsPiped

func IsPiped(ctx *cmd.Context) bool

IsPiped determines if the command was used in a pipe and, hence, it's stdin is not usable for user input.

func IsUserAbortedError

func IsUserAbortedError(err error) bool

IsUserAbortedError returns true if err is of type userAbortedError.

func NewSuperCommand

func NewSuperCommand(p cmd.SuperCommandParams) *cmd.SuperCommand

NewSuperCommand is like cmd.NewSuperCommand but it adds juju-specific functionality: - The default logging configuration is taken from the environment; - The version is configured to the current juju version; - The additional version information is sourced from juju/juju/version; - The command emits a log message when a command runs.

func UserConfirmName

func UserConfirmName(verificationName string, objectType string, ctx *cmd.Context) error

UserConfirmName returns an error if we do not read a "name" of the model/controller/etc from user input.

func UserConfirmYes

func UserConfirmYes(ctx *cmd.Context) error

UserConfirmYes returns an error if we do not read a "y" or "yes" from user input.

Types

This section is empty.

Directories

Path Synopsis
initialize/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
utils/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
internal
loginprovider
Package loginprovider contains login providers required only by the Juju CLI.
Package loginprovider contains login providers required only by the Juju CLI.
application/bundle/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
application/deployer/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
application/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
application/store/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
application/utils/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
caas/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
charmhub
Package charmhub implements the Charmhub-related CLI commands, such as "juju download", "juju find", and "juju info".
Package charmhub implements the Charmhub-related CLI commands, such as "juju download", "juju find", and "juju info".
charmhub/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
cloud/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
commands/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
config
Package config provides a common base struct to be used for Juju's various config commands (config, model-config, controller-config, model-defaults).
Package config provides a common base struct to be used for Juju's various config commands (config, model-config, controller-config, model-defaults).
controller
Package controller groups various commands that are based on talking directly to the controller, and not environments in the controller.
Package controller groups various commands that are based on talking directly to the controller, and not environments in the controller.
interact
Package interact provides helper methods for interacting with the CLI user at command run time.
Package interact provides helper methods for interacting with the CLI user at command run time.
machine/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
model/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
secretbackends/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
secrets/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
space/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
ssh
ssh/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
storage
Package storage implements the "juju storage" command, which provides a storage management interface for manipulating and inspecting storage entities (volumes, filesystems, charm storage).
Package storage implements the "juju storage" command, which provides a storage management interface for manipulating and inspecting storage entities (volumes, filesystems, charm storage).
waitfor/api
Package api exists because we can't generate mocks in the main namespace.
Package api exists because we can't generate mocks in the main namespace.
waitfor/api/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
The `jujud` binary provides, among other things, commands that are used in agent definition files to spawn various agents.
The `jujud` binary provides, among other things, commands that are used in agent definition files to spawn various agents.
agent/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
reboot/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
run
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
progress/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
plugins

Jump to

Keyboard shortcuts

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