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

Unified Diff: cmd/output_test.go

Issue 6532045: cmd: add cmd.Context to command.Init (Closed)
Patch Set: Created 12 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/jujud/version.go ('k') | cmd/supercommand.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmd/output_test.go
=== modified file 'cmd/output_test.go'
--- cmd/output_test.go 2012-08-07 16:23:28 +0000
+++ cmd/output_test.go 2012-09-18 11:46:40 +0000
@@ -16,7 +16,7 @@
return &cmd.Info{"output", "<something>", "I like to output", "output"}
}
-func (c *OutputCommand) Init(f *gnuflag.FlagSet, args []string) error {
+func (c *OutputCommand) Init(f *gnuflag.FlagSet, args []string, _ *cmd.Context) error {
c.out.AddFlags(f, "smart", cmd.DefaultFormatters)
if err := f.Parse(true, args); err != nil {
return err
« no previous file with comments | « cmd/jujud/version.go ('k') | cmd/supercommand.go » ('j') | no next file with comments »

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