improved terminal stuff
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
package bin;
|
||||
|
||||
using tink.CoreApi;
|
||||
import lib.TermHandle;
|
||||
import lib.CLIBase;
|
||||
|
||||
class HelloWorld extends CLIBase {
|
||||
public function invoke(handle: TermHandle):Bool {
|
||||
public function invoke(handle: TermHandle):Future<Bool> {
|
||||
var world:String = "world";
|
||||
if (handle.args.length > 0) {
|
||||
world = handle.args[0];
|
||||
}
|
||||
|
||||
handle.write('Hello, $world!');
|
||||
return true;
|
||||
return Future.sync(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user