~dave-cheney/juju-core/102-cmd-init-context

« back to all changes in this revision

Viewing changes to cmd/juju/unexpose.go

  • Committer: Dave Cheney
  • Date: 2012-09-18 11:37:18 UTC
  • Revision ID: david.cheney@canonical.com-20120918113718-nf0nt6m9s4zskh50
add context to command.init

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        return &cmd.Info{"unexpose", "", "unexpose a service", ""}
19
19
}
20
20
 
21
 
func (c *UnexposeCommand) Init(f *gnuflag.FlagSet, args []string) error {
 
21
func (c *UnexposeCommand) Init(f *gnuflag.FlagSet, args []string, _ *cmd.Context) error {
22
22
        addEnvironFlags(&c.EnvName, f)
23
23
        if err := f.Parse(true, args); err != nil {
24
24
                return err