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();
 
   79    JOBSET jobFile( jobsFilePath.ToStdString() );
 
   87    if( !outputKey.IsEmpty() )
 
 
void addCommonArgs(bool aInput, bool aOutput, bool aInputCanBeDir, bool aOutputIsDir)
Set up the most common of args used across cli.
 
argparse::ArgumentParser m_argParser
 
COMMAND(const std::string &aName)
Define a new COMMAND instance.
 
wxString m_argInput
Value of the common input arg if configured.
 
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
 
static REPORTER & GetInstance()
 
JOBSET_DESTINATION * FindDestination(wxString &aDestinationStr)
Attempts to find a destination based on the given string Both the uuid of the destination and descrip...
 
bool RunJobsAllDestinations(bool aBail=false)
 
bool RunJobsForDestination(JOBSET_DESTINATION *aDestination, 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...
 
virtual SETTINGS_MANAGER & GetSettingsManager() const
 
Container for project specific data.
 
PROJECT * GetProject(const wxString &aFullPath) const
Retrieve a loaded project by name.
 
#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)