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

Unified Diff: cmd/juju/synctools.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/switch_test.go ('k') | cmd/juju/unexpose.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/juju/synctools.go
=== modified file 'cmd/juju/synctools.go'
--- cmd/juju/synctools.go 2014-03-10 00:45:41 +0000
+++ cmd/juju/synctools.go 2014-04-01 04:53:43 +0000
@@ -8,6 +8,7 @@
"launchpad.net/gnuflag"
"launchpad.net/juju-core/cmd"
+ "launchpad.net/juju-core/cmd/envcmd"
"launchpad.net/juju-core/environs/filestorage"
"launchpad.net/juju-core/environs/sync"
"launchpad.net/juju-core/version"
@@ -18,7 +19,7 @@
// SyncToolsCommand copies all the tools from the us-east-1 bucket to the local
// bucket.
type SyncToolsCommand struct {
- cmd.EnvCommandBase
+ envcmd.EnvCommandBase
allVersions bool
versionStr string
majorVersion int
@@ -63,6 +64,10 @@
}
func (c *SyncToolsCommand) Init(args []string) error {
+ err := c.EnvCommandBase.Init()
+ if err != nil {
+ return err
+ }
if c.destination != "" {
// Override localDir with destination as localDir now replaces destination
c.localDir = c.destination
« no previous file with comments | « cmd/juju/switch_test.go ('k') | cmd/juju/unexpose.go » ('j') | no next file with comments »

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