improved terminal stuff

This commit is contained in:
2022-12-19 17:35:52 +01:00
parent c6e5a836ea
commit 3cb1811dcb
4 changed files with 70 additions and 35 deletions

View File

@@ -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);
}
}