Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ typedef struct {
Nob_Procs *async;
// Maximum processes allowed in the .async list. Zero implies nob_nprocs().
size_t max_procs;
// Do not reset the command after execution.
bool keep_cmd;
// Redirect stdin to file
const char *stdin_path;
// Redirect stdout to file
Expand Down Expand Up @@ -1104,7 +1106,7 @@ NOBDEF bool nob_cmd_run_opt(Nob_Cmd *cmd, Nob_Cmd_Opt opt)
if (opt_fdin) nob_fd_close(*opt_fdin);
if (opt_fdout) nob_fd_close(*opt_fdout);
if (opt_fderr) nob_fd_close(*opt_fderr);
cmd->count = 0;
if (!opt.keep_cmd) cmd->count = 0;
return result;
}

Expand Down