Skip to content

Commit

Permalink
Merge branch 'return_both_exit_code_and_output' into 'main'
Browse files Browse the repository at this point in the history
Able to show both output and handle exit codes

Closes #44

See merge request melroy/winegui!35
  • Loading branch information
melroy89 committed Jun 22, 2024
2 parents b7c5195 + c1ebbfd commit 55969db
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 203 deletions.
4 changes: 2 additions & 2 deletions include/helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ class Helper
Helper(const Helper&) = delete;
Helper& operator=(const Helper&) = delete;

static string exec(const char* cmd);
static string exec_error_message(const char* cmd);
static std::pair<int, string> exec(const std::string& command);
static string exec_error_message(const std::string& command);
static int close_exec_stream(std::FILE* file);
static void write_file(const string& filename, const string& contents);
static string read_file(const string& filename);
Expand Down
Loading

0 comments on commit 55969db

Please sign in to comment.