1#ifndef YAZE_APP_EDITOR_SYSTEM_BACKGROUND_COMMAND_TASK_H_
2#define YAZE_APP_EDITOR_SYSTEM_BACKGROUND_COMMAND_TASK_H_
8#include "absl/status/status.h"
25 absl::Status
status = absl::UnknownError(
"Task not started");
34 absl::Status
Start(
const std::string& command,
const std::string& directory);
40 void WorkerMain(std::string command, std::string directory);
42 void Finalize(absl::Status status,
int exit_code);
59 absl::Status
status_ = absl::UnknownError(
"Task not started");
void Finalize(absl::Status status, int exit_code)
void WorkerMain(std::string command, std::string directory)
BackgroundCommandTask()=default
Snapshot GetSnapshot() const
BackgroundCommandTask & operator=(const BackgroundCommandTask &)=delete
BackgroundCommandTask(const BackgroundCommandTask &)=delete
static std::string ComputeOutputTail(const std::string &output)
absl::Status Start(const std::string &command, const std::string &directory)
void AppendOutput(const char *data, size_t size)
Editors are the view controllers for the application.