Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(765)

Unified Diff: cmd/juju/set.go

Issue 75600044: Preliminary support for basic juju id commands:
Patch Set: Preliminary support for basic juju id commands: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cmd/juju/run_test.go ('k') | cmd/juju/ssh.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/juju/set.go
=== modified file 'cmd/juju/set.go'
--- cmd/juju/set.go 2013-12-17 18:21:26 +0000
+++ cmd/juju/set.go 2014-04-01 04:53:43 +0000
@@ -11,13 +11,14 @@
"launchpad.net/gnuflag"
"launchpad.net/juju-core/cmd"
+ "launchpad.net/juju-core/cmd/envcmd"
"launchpad.net/juju-core/juju"
"launchpad.net/juju-core/state/api/params"
)
// SetCommand updates the configuration of a service.
type SetCommand struct {
- cmd.EnvCommandBase
+ envcmd.EnvCommandBase
ServiceName string
SettingsStrings map[string]string
SettingsYAML cmd.FileVar
@@ -44,6 +45,10 @@
}
func (c *SetCommand) Init(args []string) error {
+ err := c.EnvCommandBase.Init()
+ if err != nil {
+ return err
+ }
if len(args) == 0 || len(strings.Split(args[0], "=")) > 1 {
return errors.New("no service name specified")
}
« no previous file with comments | « cmd/juju/run_test.go ('k') | cmd/juju/ssh.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b