Skip to content

Commit

Permalink
ZOOKEEPER-3649: Add a line break in ls -s CLI
Browse files Browse the repository at this point in the history
As per the ticket [ZOOKEEEPER-3649](https://issues.apache.org/jira/browse/ZOOKEEPER-3649) we need to add line break ls -s command.

To achieve the desired behavior I have added new line character in option.add of  LsCommand.printChildren(). Please do let me know if made changes gives us the desired behavior or if anything else needs to be changed.

Author: ravowlga123 <ravowlga@gmail.com>

Reviewers: eolivelli@apache.org, andor@apache.org

Closes apache#1183 from ravowlga123/ZOOKEEPER-3649 and squashes the following commits:

f2e1997 [ravowlga123] ZOOKEEPER-3649 Removed additional new line from printChildren
b36d636 [ravowlga123] ZOOKEEPER-3649 Add a line break in ls -s CLI
  • Loading branch information
rabi-kumar authored and junyoungKimGit committed Feb 7, 2020
1 parent 61156aa commit 7aa75bc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ private void printChildren(List<String> children, Stat stat) {
}
out.append(child);
}
out.append("]");
out.append("]\n");
if (stat != null) {
new StatPrinter(out).print(stat);
}
out.append("\n");
}

}

0 comments on commit 7aa75bc

Please sign in to comment.