Created
December 6, 2009 04:03
-
-
Save bigeasy/250044 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
com.goodworkalan.snap.Welcome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.goodworkalan.snap; | |
@Command | |
public class Welcome implements Commandable { | |
public String greeting; | |
@Argument | |
public void addGreeting(String greeting) { | |
this.greeting = greeting; | |
} | |
public void execute(Environment env) { | |
env.io.out.println(greeting); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment