MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getCurrentRunConfig

Method getCurrentRunConfig

src/tools/ecode/projectbuild.cpp:816–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816std::optional<ProjectBuildStep> ProjectBuildManager::getCurrentRunConfig() {
817 if ( hasBuildConfig() ) {
818 auto build = getCurrentBuild();
819 if ( build != nullptr && build->hasRun() ) {
820 for ( const auto& crun : build->mRun ) {
821 if ( crun->name == mConfig.runName || mConfig.runName.empty() ) {
822 ProjectBuildCommand res( build->replaceVars( *crun.get() ) );
823 replaceDynamicVars( res );
824 return res;
825 }
826 }
827 }
828 }
829 return {};
830}
831
832void ProjectBuildManager::runConfig( StatusAppOutputController* saoc ) {
833 if ( !isRunningApp() && !getBuilds().empty() ) {

Callers 3

replaceKeyInStringMethod · 0.80
replaceKeysInJsonMethod · 0.80
runConfigMethod · 0.80

Calls 4

hasRunMethod · 0.80
replaceVarsMethod · 0.80
emptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected