Skip to content

Commit 8cae7c9

Browse files
Adding missing reference in argument and updating comments
1 parent a3fd6f4 commit 8cae7c9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Include/runcpp2/runcpp2.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ namespace runcpp2
4040
PipelineResult StartPipeline( const std::string& scriptPath,
4141
const std::vector<Data::Profile>& profiles,
4242
const std::string& configPreferredProfile,
43-
const std::unordered_map<CmdOptions, std::string> currentOptions,
43+
const std::unordered_map< CmdOptions,
44+
std::string>& currentOptions,
4445
const std::vector<std::string>& runArgs,
4546
const Data::ScriptInfo* lastScriptInfo,
4647
const std::string& buildOutputDir,

Src/runcpp2/PipelineSteps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ runcpp2::ParseAndValidateScriptInfo(const ghc::filesystem::path& absoluteScriptP
322322

323323
if(ghc::filesystem::exists(dedicatedYamlLoc, e))
324324
{
325-
//Record write time for yaml file
325+
//Record write time for yaml file for watch option
326326
outScriptInfo.LastWriteTime = ghc::filesystem::last_write_time(dedicatedYamlLoc, e);
327327
if(e)
328328
{
@@ -337,7 +337,7 @@ runcpp2::ParseAndValidateScriptInfo(const ghc::filesystem::path& absoluteScriptP
337337
}
338338
else
339339
{
340-
//Record write time for script file
340+
//Record write time for script file for watch option
341341
outScriptInfo.LastWriteTime = ghc::filesystem::last_write_time(absoluteScriptPath, e);
342342
if(e)
343343
{

Src/runcpp2/runcpp2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ runcpp2::PipelineResult
397397
runcpp2::StartPipeline( const std::string& scriptPath,
398398
const std::vector<Data::Profile>& profiles,
399399
const std::string& configPreferredProfile,
400-
const std::unordered_map<CmdOptions, std::string> currentOptions,
400+
const std::unordered_map<CmdOptions, std::string>& currentOptions,
401401
const std::vector<std::string>& runArgs,
402402
const Data::ScriptInfo* lastScriptInfo,
403403
const std::string& buildOutputDir,

0 commit comments

Comments
 (0)