Skip to content

Instantly share code, notes, and snippets.

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