mirror of https://github.com/docker/cli.git
cli/command/formatter: NewClientContextFormat(): unconvert
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
30a0d0c6d6
commit
0ed80a3a58
|
@ -11,10 +11,10 @@ const (
|
||||||
// NewClientContextFormat returns a Format for rendering using a Context
|
// NewClientContextFormat returns a Format for rendering using a Context
|
||||||
func NewClientContextFormat(source string, quiet bool) Format {
|
func NewClientContextFormat(source string, quiet bool) Format {
|
||||||
if quiet {
|
if quiet {
|
||||||
return Format(quietContextFormat)
|
return quietContextFormat
|
||||||
}
|
}
|
||||||
if source == TableFormatKey {
|
if source == TableFormatKey {
|
||||||
return Format(ClientContextTableFormat)
|
return ClientContextTableFormat
|
||||||
}
|
}
|
||||||
return Format(source)
|
return Format(source)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue