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

package cmd

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

Index

Package Files

helpers.go supercommand.go

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/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/cloud
juju/commands
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/agentagent contains jujud's machine agent.
jujud/agent/agenttest
jujud/agent/caasoperator
jujud/agent/engine
jujud/agent/engine/enginetest
jujud/agent/machine
jujud/agent/model
jujud/agent/unit
jujud/dumplogs
jujud/introspect
jujud/reboot
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
modelcmd
output
service

Package cmd imports 15 packages (graph). Updated 2020-05-29. Refresh now. Tools for package owners.