49
49
code := Main(&VersionCommand{}, ctx, []string{"--format", "json"})
50
50
c.Check(code, gc.Equals, 0)
51
51
c.Assert(stderr.String(), gc.Equals, "")
52
c.Assert(stdout.String(), gc.Equals, fmt.Sprintf("%q", version.Current.String())+"\n")
52
c.Assert(stdout.String(), gc.Equals, fmt.Sprintf("%q\n", version.Current.String()))