Add network --format flag to ls

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: a8aaafc4a3fc716bdb2c4e571e34c66eb80bbab2
Component: engine
This commit is contained in:
Vincent Demeester
2016-08-04 14:59:51 +02:00
parent 5f35a9dc5e
commit 33375755ad
9 changed files with 444 additions and 26 deletions

View File

@ -130,6 +130,12 @@ func (cli *DockerCli) ImagesFormat() string {
return cli.configFile.ImagesFormat
}
// NetworksFormat returns the format string specified in the configuration.
// String contains columns and format specification, for example {{ID}}\t{{Name}}
func (cli *DockerCli) NetworksFormat() string {
return cli.configFile.NetworksFormat
}
func (cli *DockerCli) setRawTerminal() error {
if os.Getenv("NORAW") == "" {
if cli.isTerminalIn {