Skip to content

Commit

Permalink
Add --build parameter to compose up command
Browse files Browse the repository at this point in the history
  • Loading branch information
navrocky committed Sep 17, 2024
1 parent aa550f7 commit efcfae0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.2.1 (2024.09.17)

* Add `--build` parameter to compose up command

# 1.2.0 (2024.05.08)

* Switch to new command line parser [CLI11](https://github.com/CLIUtils/CLI11)
Expand Down
2 changes: 1 addition & 1 deletion cli/compose_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ComposeExecutorImpl::ComposeExecutorImpl(ProcessExecutorPtr processExecutor)
void ComposeExecutorImpl::up(const std::string& file, const string& projectName, bool detach)
{
auto dir = filesystem::path(file).parent_path();
auto command = format("cd \"{}\" && {} -p \"{}\" -f \"{}\" up", dir.string(), composeCommand, projectName, file);
auto command = format("cd \"{}\" && {} -p \"{}\" -f \"{}\" up --build", dir.string(), composeCommand, projectName, file);
if (detach)
command += " -d";
processExecutor->execOrThrow(command);
Expand Down

0 comments on commit efcfae0

Please sign in to comment.