juju: github.com/juju/juju/cmd/juju/romulus/listplans Index | Files

package listplans

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

The listplans package contains implementation of the command that can be used to list plans that are available for a charm.

Index

Package Files

list_plans.go

func NewListPlansCommand Uses

func NewListPlansCommand() modelcmd.ControllerCommand

NewListPlansCommand creates a new ListPlansCommand.

type ListPlansCommand Uses

type ListPlansCommand struct {
    modelcmd.ControllerCommandBase

    CharmURL string
    // contains filtered or unexported fields
}

ListPlansCommand retrieves plans that are available for the specified charm

func (*ListPlansCommand) Info Uses

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

Info implements Command.Info.

func (*ListPlansCommand) Init Uses

func (c *ListPlansCommand) Init(args []string) error

Init reads and verifies the cli arguments for the ListPlansCommand

func (*ListPlansCommand) Run Uses

func (c *ListPlansCommand) Run(ctx *cmd.Context) (rErr error)

Run implements Command.Run. Retrieves the plan from the plans service. The set of plans to be retrieved can be limited using the plan and isv flags.

func (*ListPlansCommand) SetFlags Uses

func (c *ListPlansCommand) SetFlags(f *gnuflag.FlagSet)

SetFlags implements Command.SetFlags.

Package listplans imports 17 packages (graph) and is imported by 17 packages. Updated 2018-12-11. Refresh now. Tools for package owners.