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

Unified Diff: cmd/juju/status.go

Issue 6430045: cmd/juju: status: add format and output support (Closed)
Patch Set: cmd/juju: status: add format and output support Created 12 years, 8 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 | « [revision details] ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/juju/status.go
=== modified file 'cmd/juju/status.go'
--- cmd/juju/status.go 2012-07-18 22:22:39 +0000
+++ cmd/juju/status.go 2012-07-18 22:30:30 +0000
@@ -8,6 +8,7 @@
type StatusCommand struct {
EnvName string
+ Out cmd.Output
}
var statusDoc = "This command will report on the runtime state of various system entities."
@@ -20,6 +21,7 @@
func (c *StatusCommand) Init(f *gnuflag.FlagSet, args []string) error {
addEnvironFlags(&c.EnvName, f)
+ c.Out.AddFlags(f, "yaml", cmd.DefaultFormatters)
if err := f.Parse(true, args); err != nil {
return err
}
« no previous file with comments | « [revision details] ('k') | no next file » | no next file with comments »

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