charms

package
v0.0.0-...-f19ae85 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ListCommandDoc = `` /* 333-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewSuperCommand

func NewSuperCommand() cmd.Command

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

type CharmsListAPI interface {
	List(names []string) ([]string, error)
	Close() error
}

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) Info

func (c *ListCommand) Info() *cmd.Info

Info implements Command.Info.

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.

Jump to

Keyboard shortcuts

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