def version(short: false)
      o = opts(short: [short, false])
      result = run!('version', o, file: false, dir: false)

      if short
        result.strip
      else
        lines = result.split(/[\r\n]+/)
        lines.inject({}) do |h, line|
          kv = line.split(/: +/, 2)
          h[kv.first] = kv.last
          h
        end
      end
    end
def version(short: false)
      o = opts(short: [short, false])
      result = run!('version', o, file: false, dir: false)

      if short
        result.strip
      else
        lines = result.split(/[\r\n]+/)
        lines.inject({}) do |h, line|
          kv = line.split(/: +/, 2)
          h[kv.first] = kv.last
          h
        end
      end
    end
Determine the installed version of docker-compose.
 @param [Boolean] short whether to return terse version information
 @return [String, Hash] if short==true, returns a version string;
   otherwise, returns a Hash of component-name strings to version strings
 @raise [Error] if command fails