~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/worker/uniter/runner/jujuc/config-get_test.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        ctx := testing.Context(c)
131
131
        code := cmd.Main(com, ctx, []string{"--help"})
132
132
        c.Assert(code, gc.Equals, 0)
133
 
        c.Assert(bufferString(ctx.Stdout), gc.Equals, `usage: config-get [options] [<key>]
134
 
purpose: print service configuration
135
 
 
136
 
options:
 
133
        c.Assert(bufferString(ctx.Stdout), gc.Equals, `Usage: config-get [options] [<key>]
 
134
 
 
135
Summary:
 
136
print service configuration
 
137
 
 
138
Options:
137
139
-a, --all  (= false)
138
140
    print all keys
139
141
--format  (= smart)
141
143
-o, --output (= "")
142
144
    specify an output file
143
145
 
 
146
Details:
144
147
When no <key> is supplied, all keys with values or defaults are printed. If
145
148
--all is set, all known keys are printed; those without defaults or values are
146
149
reported as null. <key> and --all are mutually exclusive.