18 lines
334 B
Haxe
18 lines
334 B
Haxe
package bin;
|
|
|
|
import lib.TermHandle;
|
|
import kernel.fs.FileHandler.WriteHandle;
|
|
import lib.CLIBase;
|
|
|
|
class HelloWorld extends CLIBase {
|
|
public function invoke(handle: TermHandle):Bool {
|
|
var world:String = "world";
|
|
if (handle.args.length > 0) {
|
|
world = handle.args[0];
|
|
}
|
|
|
|
handle.write('Hello, $world!');
|
|
return true;
|
|
}
|
|
}
|