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

Delta Between Two Patch Sets: cmd/juju/main.go

Issue 5901058: cmd/juju: working bootstrap and destroy commands
Left Patch Set: cmd/juju: working bootstrap and destroy commands Created 13 years ago
Right Patch Set: cmd/juju: working bootstrap and destroy commands Created 12 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « cmd/juju/destroy.go ('k') | cmd/juju/main_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 package main 1 package main
2 2
3 import ( 3 import (
4 "launchpad.net/juju/go/cmd" 4 "launchpad.net/juju/go/cmd"
5 "os" 5 "os"
6 ) 6 )
7 7
8 // Environment types to include. 8 // Environment types to include.
9 import ( 9 import (
10 _ "launchpad.net/juju/go/environs/ec2" 10 _ "launchpad.net/juju/go/environs/ec2"
11 ) 11 )
12 12
13 var jujuDoc = ` 13 var jujuDoc = `
14 juju provides easy, intelligent service orchestration on top of environments 14 juju provides easy, intelligent service orchestration on top of environments
15 such as OpenStack, Amazon AWS, or bare metal. 15 such as OpenStack, Amazon AWS, or bare metal.
16 16
17 https://juju.ubuntu.com/ 17 https://juju.ubuntu.com/
18 ` 18 `
19 19
20 // Main registers subcommands for the juju executable, and hands over control 20 // Main registers subcommands for the juju executable, and hands over control
21 // to the cmd package. This function is not redundant with main, because it 21 // to the cmd package. This function is not redundant with main, because it
22 // provides an entry point for testing with arbitrary command line arguments. 22 // provides an entry point for testing with arbitrary command line arguments.
23 func Main(args []string) { 23 func Main(args []string) {
24 » jc := cmd.NewSuperCommand("juju", jujuDoc) 24 » juju := cmd.NewSuperCommand("juju", "", jujuDoc)
25 » jc.Register(&BootstrapCommand{}) 25 » juju.Register(&BootstrapCommand{})
26 » jc.Register(&DestroyCommand{}) 26 » juju.Register(&DestroyCommand{})
27 » cmd.Main(jc, args) 27 » os.Exit(cmd.Main(juju, cmd.DefaultContext(), args[1:]))
28 } 28 }
29 29
30 func main() { 30 func main() {
31 Main(os.Args) 31 Main(os.Args)
32 } 32 }
LEFTRIGHT

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