Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ committed Oct 15, 2024
1 parent f918da9 commit bb8f8cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/crowdin/cli/commands/Actions.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ NewAction<PropertiesWithFiles, ProjectClient> download(
);

NewAction<NoProperties, NoClient> init(FilesInterface files, String token, String baseUrl, String basePath,
String projectId, String source, String translation, Boolean preserveHierarchy, Path destinationPath, boolean quite);
String projectId, String source, String translation, Boolean preserveHierarchy, Path destinationPath, boolean quiet);

NewAction<ProjectProperties, ProjectClient> listBranches(boolean noProgress, boolean plainView);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public NewAction<PropertiesWithFiles, ProjectClient> download(

@Override
public NewAction<NoProperties, NoClient> init(FilesInterface files, String token, String baseUrl, String basePath,
String projectId, String source, String translation, Boolean preserveHierarchy, Path destinationPath, boolean init
String projectId, String source, String translation, Boolean preserveHierarchy, Path destinationPath, boolean quiet
) {
return new InitAction(files, token, baseUrl, basePath, projectId, source, translation, preserveHierarchy, destinationPath, init);
return new InitAction(files, token, baseUrl, basePath, projectId, source, translation, preserveHierarchy, destinationPath, quiet);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class InitAction implements NewAction<NoProperties, NoClient> {
private final String translation;
private final Boolean preserveHierarchy;
private final Path destinationPath;
private final boolean init;
private final boolean quiet;

@Override
public void act(Outputter out, NoProperties noProperties, NoClient noClient) {
Expand All @@ -69,7 +69,7 @@ public void act(Outputter out, NoProperties noProperties, NoClient noClient) {
}

List<String> fileLines = Utils.readResource("/crowdin.yml");
if (!init) {
if (!quiet) {
this.updateWithUserInputs(out, asking, fileLines);
}
files.writeToFile(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public class InitSubcommand extends GenericActCommand<NoProperties, NoClient> {
private Boolean preserveHierarchy;

@CommandLine.Option(names = "--quiet", descriptionKey = "params.quiet", order = -2)
private boolean quite;
private boolean quiet;

protected NewAction<NoProperties, NoClient> getAction(Actions actions) {
return actions.init(new FsFiles(), token, baseUrl, basePath, projectId, source, translation, preserveHierarchy, destinationPath, quite);
return actions.init(new FsFiles(), token, baseUrl, basePath, projectId, source, translation, preserveHierarchy, destinationPath, quiet);
}

protected NoProperties getProperties(PropertiesBuilders propertiesBuilders, Outputter out) {
Expand Down

0 comments on commit bb8f8cf

Please sign in to comment.