Documentation ¶
Index ¶
Constants ¶
View Source
const ListCommandDoc = `` /* 333-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewSuperCommand ¶
NewSuperCommand creates the charms supercommand and registers the subcommands that it supports.
Types ¶
type CharmsCommandBase ¶
type CharmsCommandBase struct {
envcmd.EnvCommandBase
}
CharmsCommandBase is a helper base structure that has a method to get the charms management client.
func (*CharmsCommandBase) NewCharmsClient ¶
func (c *CharmsCommandBase) NewCharmsClient() (*charms.Client, error)
NewCharmsClient returns a charms client for the root api endpoint that the environment command returns.
type CharmsListAPI ¶
CharmsListAPI defines the API methods that the list command uses.
type ListCommand ¶
type ListCommand struct { CharmsCommandBase Names []string // contains filtered or unexported fields }
ListCommand lists charms URLs.
func (*ListCommand) Init ¶
func (c *ListCommand) Init(args []string) (err error)
Init implements Command.Init.
func (*ListCommand) Run ¶
func (c *ListCommand) Run(ctx *cmd.Context) (err error)
Run implements Command.Run.
func (*ListCommand) SetFlags ¶
func (c *ListCommand) SetFlags(f *gnuflag.FlagSet)
SetFlags implements Command.SetFlags.
Click to show internal directories.
Click to hide internal directories.