src/sakura_root.cpp
/**
 * initialize and start rollout-process
 *
 * @param inputPath initial path to parse
 * @param initialValues key-value-pairs to override the values of the initial file
 * @param dryRun true to start a run with parsing and validating, but without execution
 *
 * @return true if successful, else false
 */
initialize and start rollout-process
@param inputPath initial path to parse
@param initialValues key-value-pairs to override the values of the initial file
@param dryRun true to start a run with parsing and validating, but without execution

@return true if successful, else false
initialize and start rollout - process @param inputPath initial path to parse @param initialValues key - value - pairs to override the values of the initial file @param dryRun true to start a run with parsing and validating but without execution @return true if successful else false
bool
SakuraRoot::startProcess(const std::string &inputPath,
                         const DataMap &initialValues,
                         const bool dryRun)
{
    initBlossoms();
    LOG_INFO(ASCII_LOGO, PINK_COLOR);
    std::string treeFile = inputPath;
    if(bfs::is_directory(treeFile)) {
        treeFile = treeFile + "/root.sakura";
    }
    std::string errorMessage = "";
    SakuraLangInterface* interface = SakuraLangInterface::getInstance();
    const bool result = interface->processFiles(treeFile,
                                                initialValues,
                                                dryRun,
                                                errorMessage);
    if(result) {
        LOG_INFO("finish", GREEN_COLOR);
    } else {
        LOG_ERROR(errorMessage);
    }
    return result;
}
bool SakuraRoot :: startProcess ( const std :: string & inputPath , const DataMap & initialValues , const bool dryRun ) { initBlossoms ( ) ; LOG_INFO ( ASCII_LOGO , PINK_COLOR ) ; std :: string treeFile = inputPath ; if ( bfs :: is_directory ( treeFile ) ) { treeFile = treeFile + " " ; } std :: string errorMessage = " " ; SakuraLangInterface * interface = SakuraLangInterface :: getInstance ( ) ; const bool result = interface -> processFiles ( treeFile , initialValues , dryRun , errorMessage ) ; if ( result ) { LOG_INFO ( " " , GREEN_COLOR ) ; } else { LOG_ERROR ( errorMessage ) ; } return result ; }
initialize and start rollout-process
 @param inputPath initial path to parse
 @param initialValues key-value-pairs to override the values of the initial file
 @param dryRun true to start a run with parsing and validating, but without execution
initialize and start rollout - process @param inputPath initial path to parse @param initialValues key - value - pairs to override the values of the initial file @param dryRun true to start a run with parsing and validating but without execution
// set default-file in case that a directory instead of a file was selected // process