juju: github.com/juju/juju/cmd Index | Files | Directories

package cmd

import "github.com/juju/juju/cmd"

Index

Package Files

helpers.go supercommand.go

Variables

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

DefaultLog is the default command logging implementation.

func Info Uses

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

func IsPiped Uses

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 Uses

func IsUserAbortedError(err error) bool

IsUserAbortedError returns true if err is of type userAbortedError.

func NewSuperCommand Uses

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 UserConfirmYes Uses

func UserConfirmYes(ctx *cmd.Context) error

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

Directories

PathSynopsis
cmdtest
juju
juju/action
juju/application
juju/application/bundle
juju/application/bundle/mocksPackage mocks is a generated GoMock package.
juju/application/deployer
juju/application/deployer/mocksPackage mocks is a generated GoMock package.
juju/application/mocksPackage mocks is a generated GoMock package.
juju/application/refresher
juju/application/store
juju/application/store/mocksPackage mocks is a generated GoMock package.
juju/application/utils
juju/application/utils/mocksPackage mocks is a generated GoMock package.
juju/backups
juju/block
juju-bridge
jujuc
juju/caas
juju/caas/mocksPackage mocks is a generated GoMock package.
juju/cachedimages
juju/charmcmd
juju/charmhub
juju/charmhub/mocksPackage mocks is a generated GoMock package.
juju/cloud
juju/commands
juju/commands/mocksPackage mocks is a generated GoMock package.
juju/common
juju/controllerThe controller package groups various commands that are based on talking directly to the controller, and not environments in the controller.
juju/crossmodel
jujud
jujud/agent
jujud/agent/addons
jujud/agent/agentconf
jujud/agent/agenttest
jujud/agent/caasoperator
jujud/agent/config
jujud/agent/engine
jujud/agent/engine/enginetest
jujud/agent/errors
jujud/agent/machine
jujud/agent/model
jujud/agent/modeloperator
jujud/agent/unit
jujud/dumplogs
jujud/introspect
jujud/reboot
jujud/run
jujud/util
juju/firewall
juju/gui
juju/interactPackage interact provides helper methods for interacting with the CLI user at command run time.
juju/machine
juju/machine/mocksPackage mocks is a generated GoMock package.
juju/metricsdebug
juju/model
juju/model/mocksPackage mocks is a generated GoMock package.
juju/resource
juju/romulus
juju/romulus/agree
juju/romulus/budgetPackage budget defines the command used to update budgets.
juju/romulus/commandsPackage commands provides functionality for registering all the romulus commands.
juju/romulus/createwallet
juju/romulus/listagreements
juju/romulus/listplansThe listplans package contains implementation of the command that can be used to list plans that are available for a charm.
juju/romulus/listwallets
juju/romulus/setplanThe setplan package contains the implementation of the juju set-plan command.
juju/romulus/setwallet
juju/romulus/showwallet
juju/romulus/slaThe sla package contains the implementation of the juju sla command.
juju/setmeterstatus
juju/space
juju/space/mocksPackage mocks is a generated GoMock package.
juju/status
juju/storageThe storage command provides a storage management interface, for manipulating and inspecting storage entities (volumes, filesystems, charm storage).
juju/subnet
juju/user
k8sagent
k8sagent/config
k8sagent/initialize
k8sagent/unit
modelcmd
output
service

Package cmd imports 12 packages (graph) and is imported by 299 packages. Updated 2020-10-28. Refresh now. Tools for package owners.