Skip to content

Commit

Permalink
fix: preserve hierarchy output
Browse files Browse the repository at this point in the history
  • Loading branch information
katerina20 committed Mar 18, 2024
1 parent 690cb22 commit 3762f11
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ public void act(Outputter out, PropertiesWithFiles properties, ProjectClient cli
return;
}

if (!plainView && !properties.getPreserveHierarchy()) {
out.println(WARNING.withIcon(RESOURCE_BUNDLE.getString("message.download_sources.preserve_hierarchy_warning")));
}

CrowdinProjectFull project = ConsoleSpinner
.execute(out, "message.spinner.fetching_project_info", "error.collect_project_info",
this.noProgress, this.plainView, () -> client.downloadFullProject(this.branchName));
Expand All @@ -96,10 +100,6 @@ public void act(Outputter out, PropertiesWithFiles properties, ProjectClient cli
throw new RuntimeException(RESOURCE_BUNDLE.getString("message.no_file_string_project"));
}

if (!plainView && !properties.getPreserveHierarchy()) {
out.println(WARNING.withIcon(RESOURCE_BUNDLE.getString("message.download_sources.preserve_hierarchy_warning")));
}

Long branchId = Optional.ofNullable(project.getBranch())
.map(Branch::getId)
.orElse(null);
Expand Down

0 comments on commit 3762f11

Please sign in to comment.