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

package listplans

import "github.com/wallyworld/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.


Package Files


func NewListPlansCommand Uses

func NewListPlansCommand() modelcmd.ControllerCommand

NewListPlansCommand creates a new ListPlansCommand.

type ListPlansCommand Uses

type ListPlansCommand struct {

    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). Updated 2020-01-16. Refresh now. Tools for package owners.