Skip to content

Commit

Permalink
Final text fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorato committed Dec 7, 2017
1 parent 830e822 commit ed01a26
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/runclient.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ mvn compile package
mvn install:install-file -Dfile=target/ca-1.0-SNAPSHOT.jar -DgroupId=a16 -DartifactId=ca -Dversion=1.0-SNAPSHOT -Dpackaging=jar -DlocalRepositoryPath=../client/my-repo
popd
mvn dependency:purge-local-repository
mvn -U compile exec:java -Dexec.args="https://server.yarfs:31000 --ca-addr=ca.yarfs"
mvn -U compile exec:java -Dexec.args="https://server.yarfs:31001 --ca-addr=ca.yarfs"
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
public class CommitCommand extends Command{
public CommitCommand(Shell sh, String name) {
super(sh, name, "Commit a change of existing file.");
super(sh, name, "commit a change of an existing file.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class RefreshCommand extends Command{

public RefreshCommand(Shell sh, String name) {
super(sh, name, "Unable to refresh metadata from server.");
super(sh, name, "refreshes metadata from server.");
}

@Override
Expand All @@ -29,7 +29,7 @@ void execute(String[] args) {
service.execute();
List<String> newFiles = service.getNewFiles();
if( newFiles.size() == 0 ){
shell.println("No new files. All up to date!");
shell.println("No new files. ");
}else{
shell.println("New files were found.");
for(String filename : newFiles){
Expand Down
4 changes: 2 additions & 2 deletions client/src/main/java/a16/yarfs/client/presentation/Shell.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void execute(String[] args) {
Collections.sort(availableCmds);
for(String cmdName : availableCmds) {
Command c = getShell().getCommand(cmdName);
println(" " + whatIs(c));
println("\t" + whatIs(c));
}
} else {
String cmdName = args[0];
Expand All @@ -106,7 +106,7 @@ public String getUsage() {
}

protected String whatIs(Command cmd) {
return cmd.getName() + "\t\t" + cmd.getHelp();
return cmd.getName() + "\t\t\t" + cmd.getHelp();
}

public void println(String s) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Unsharecommand extends Command{


public Unsharecommand(Shell sh, String name) {
super(sh, name, "Unshare a file with a user.");
super(sh, name, "unshare a file with a user.");
}

@Override
Expand Down

0 comments on commit ed01a26

Please sign in to comment.