package seedu.taskboss.logic.commands;

/**
 * Saves the data at specific filepath. Creates filepath if it does not exist
 */

public class SaveCommand extends Command{

public static final String COMMAND_WORD = "save";

    public static final String MESSAGE_USAGE = COMMAND_WORD
    		+ "Saves the data at specific filepath.\n"
    		+ "Example: " + COMMAND_WORD
    		+ " C://user/desktop/taskboss";

    public static final String MESSAGE_SUCCESS = "The data has been saved!";

    public static final String MESSAGE_INVALID_FILEPATH = "The filepath is invalid.";

    private final String filepath;

    public SaveCommand(String filepath) {
    	this.filepath = filepath;
    }

  @Override
  public CommandResult execute() {
  	assert storage != null;
	storage.setFilePath(filepath);
	return new CommandResult(MESSAGE_SUCCESS);
	}

}

@@ -164,11 +164,16 @@
 mand
+ 
 %7B%0A%0A
+    
 publ
@@ -683,16 +683,18 @@
 %0A    %7D%0A%0A
+  
   @Overr
@@ -697,16 +697,18 @@
 verride%0A
+  
   public
@@ -794,16 +794,21 @@
 path);%0A%09
+%0A    
 return n
@@ -842,14 +842,17 @@
 CCESS);%0A
-%09
+    
 %7D%0A%0A%7D%0A

Update SaveCommand.java