Lines Matching refs:Command
143 class Command {
162 Command(std::string executable, SubprocessStopper stopper = KillSubprocess);
163 Command(Command&&) = default;
167 Command(const Command&) = delete;
168 Command& operator=(const Command&) = delete;
169 ~Command();
175 Command& SetExecutable(std::string executable) & { in SetExecutable()
179 Command SetExecutable(std::string executable) && { in SetExecutable()
183 Command& SetName(std::string name) & { in SetName()
187 Command SetName(std::string name) && { in SetName()
191 Command& SetExecutableAndName(std::string name) & { in SetExecutableAndName()
195 Command SetExecutableAndName(std::string name) && { in SetExecutableAndName()
199 Command& SetStopper(SubprocessStopper stopper) & { in SetStopper()
203 Command SetStopper(SubprocessStopper stopper) && { in SetStopper()
209 Command& SetEnvironment(std::vector<std::string> env) & { in SetEnvironment()
213 Command SetEnvironment(std::vector<std::string> env) && { in SetEnvironment()
217 Command& AddEnvironmentVariable(const std::string& env_var, in AddEnvironmentVariable()
221 Command AddEnvironmentVariable(const std::string& env_var, in AddEnvironmentVariable()
227 Command& AddEnvironmentVariable(std::string env_var) & { in AddEnvironmentVariable()
231 Command AddEnvironmentVariable(std::string env_var) && { in AddEnvironmentVariable()
237 Command& UnsetFromEnvironment(const std::string& env_var) & { in UnsetFromEnvironment()
248 Command UnsetFromEnvironment(const std::string& env_var) && { in UnsetFromEnvironment()
258 Command& AddParameter(Args... args) & { in AddParameter()
265 Command AddParameter(Args... args) && { in AddParameter()
271 Command& AppendToLastParameter(Args... args) & { in AppendToLastParameter()
279 Command AppendToLastParameter(Args... args) && { in AppendToLastParameter()
284 Command& RedirectStdIO(Subprocess::StdIOChannel channel,
286 Command RedirectStdIO(Subprocess::StdIOChannel channel,
288 Command& RedirectStdIO(Subprocess::StdIOChannel subprocess_channel,
290 Command RedirectStdIO(Subprocess::StdIOChannel subprocess_channel,
293 Command& SetWorkingDirectory(const std::string& path) &;
294 Command SetWorkingDirectory(const std::string& path) &&;
295 Command& SetWorkingDirectory(SharedFD dirfd) &;
296 Command SetWorkingDirectory(SharedFD dirfd) &&;
298 Command& AddPrerequisite(const std::function<Result<void>()>& prerequisite) &;
299 Command AddPrerequisite(const std::function<Result<void>()>& prerequisite) &&;
340 int RunWithManagedStdio(Command&& command, const std::string* stdin,