Lines Matching refs:cmd
82 for cmd in commands:
86 if subprocess.call(cmd + ["version"],
88 return cmd
239 def _do(self, cmd, quiet=True, **kwargs): argument
242 return subprocess.call(self._command + cmd, **kwargs)
244 def _do_check(self, cmd, quiet=True, **kwargs): argument
247 return subprocess.check_call(self._command + cmd, **kwargs)
250 cmd = ["ps", "-q"]
252 cmd.append("-a")
263 cmd.append(filter)
264 for i in self._output(cmd).split():
274 def _output(self, cmd, **kwargs): argument
276 return subprocess.check_output(self._command + cmd,
282 return subprocess.check_output(self._command + cmd,
358 def run(self, cmd, keep, quiet, as_user=False): argument
365 cmd = [ "-u", str(uid) ] + cmd
368 cmd.insert(0, '--userns=keep-id')
371 "com.qemu.instance.uuid=" + label] + cmd,
377 def command(self, cmd, argv, quiet): argument
378 return self._do([cmd] + argv, quiet=quiet)
514 dkr.command(cmd="pull", quiet=args.quiet,
516 dkr.command(cmd="tag", quiet=args.quiet,
650 cmd = ["-w", cwd,
654 cmd += ["-v", "%s:%s:ro,z" % (p, p)]
655 cmd += [args.image, args.cc]
656 cmd += argv
657 return Docker().run(cmd, False, quiet=args.quiet,
671 cmd = cls()
672 subp = subparsers.add_parser(cmd.name, help=cmd.__doc__)
673 cmd.shared_args(subp)
674 cmd.args(subp)
675 subp.set_defaults(cmdobj=cmd)