Skip to content

Instantly share code, notes, and snippets.

@bigeasy
Created December 6, 2009 03:34
Show Gist options
  • Save bigeasy/250029 to your computer and use it in GitHub Desktop.
Save bigeasy/250029 to your computer and use it in GitHub Desktop.
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