33#include <wx/tokenzr.h>
37#define ARG_STOP_ON_ERROR "--stop-on-error"
38#define ARG_JOB_FILE "--file"
39#define ARG_OUTPUT "--output"
49 _(
"Stops processing jobs as they are executed sequentially on the first failure of a job" ) ) )
54 .default_value( std::string(
"" ) )
55 .metavar(
"JOB_FILE" );
58 .help(
UTF8STDSTR(
_(
"Jobset file output to generate, leave blank for all outputs defined in the jobset" ) ) )
59 .default_value( std::string(
"" ) )
68 wxString projectFile = m_argInput.ToStdString();
77 JOBSET jobFile( jobsFilePath.ToStdString() );
85 if( !outputKey.IsEmpty() )
argparse::ArgumentParser m_argParser
void addCommonArgs(bool aInput, bool aOutput, bool aInputIsDir, bool aOutputIsDir)
Set up the most common of args used across cli.
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
static REPORTER & GetInstance()
JOBSET_OUTPUT * GetOutput(wxString &aOutput)
bool RunJobsForOutput(JOBSET_OUTPUT *aOutput, bool aBail=false)
bool RunJobsAllOutputs(bool aBail=false)
virtual bool LoadFromFile(const wxString &aDirectory="")
Loads the backing file from disk and then calls Load()
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
#define ARG_STOP_ON_ERROR
This file contains miscellaneous commonly used macros and functions.
static const int ERR_JOBS_RUN_FAILED
static const int ERR_INVALID_INPUT_FILE
SETTINGS_MANAGER * GetSettingsManager()
PGM_BASE & Pgm()
The global Program "get" accessor.
wxString From_UTF8(const char *cstring)