added bin info to other bins
This commit is contained in:
parent
295d284bc1
commit
f109305f48
@ -6,6 +6,7 @@ import kernel.peripherals.Peripherals.Peripheral;
|
||||
using tink.CoreApi;
|
||||
using Lambda;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Disk", ["disk"]))
|
||||
class Disk extends CLIAppBase {
|
||||
public function new() {
|
||||
registerSyncSubcommand("ls", (args) -> {
|
||||
|
@ -7,6 +7,7 @@ import lib.Vec.Vec3;
|
||||
|
||||
using tink.CoreApi;
|
||||
|
||||
@:build(macros.Binstore.includeBin("GPS", ["gps"]))
|
||||
class GPS extends CLIAppBase {
|
||||
public function new() {
|
||||
registerSyncSubcommand("set", (args) -> {
|
||||
|
@ -6,18 +6,13 @@ import kernel.ps.Process;
|
||||
|
||||
using tink.CoreApi;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Hello world", ["hello"]))
|
||||
class HelloWorld implements Process {
|
||||
public function new() {}
|
||||
|
||||
public function run(handle:ProcessHandle) {
|
||||
handle.write("Hello World!");
|
||||
|
||||
var c = new HelloWorldServiceRPC(0);
|
||||
|
||||
c.getNumber(2, 3).handle((res) -> {
|
||||
Log.debug("Got number: " + res);
|
||||
});
|
||||
|
||||
handle.close();
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ package bin;
|
||||
import kernel.ps.ProcessHandle;
|
||||
import kernel.ps.Process;
|
||||
|
||||
@:build(macros.Binstore.includeBin("ID", ["id"]))
|
||||
class ID implements Process {
|
||||
public function new() {}
|
||||
|
||||
|
@ -3,6 +3,7 @@ package bin;
|
||||
import kernel.KernelSettings;
|
||||
import lib.CLIAppBase;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Kernel settings", ["ksettings", "kset"]))
|
||||
class KSettings extends CLIAppBase {
|
||||
public function new() {
|
||||
registerSyncSubcommand("get", (args) -> {
|
||||
|
@ -10,6 +10,7 @@ import lib.ui.UIApp;
|
||||
|
||||
using tink.CoreApi;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Log", ["log"]))
|
||||
class KernelLog implements Process {
|
||||
private var handle:ProcessHandle;
|
||||
private var ctx:WindowContext;
|
||||
|
@ -4,6 +4,7 @@ import kernel.ps.ProcessManager;
|
||||
import kernel.ps.ProcessHandle;
|
||||
import kernel.ps.Process;
|
||||
|
||||
@:build(macros.Binstore.includeBin("LSPS", ["lsps"]))
|
||||
class LSPS implements Process {
|
||||
public function new() {}
|
||||
|
||||
|
@ -6,6 +6,7 @@ import kernel.net.Routing;
|
||||
|
||||
using tink.CoreApi;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Net", ["net"]))
|
||||
class Net extends CLIAppBase {
|
||||
public function new() {
|
||||
registerSyncSubcommand("route", (args) -> {
|
||||
|
@ -3,6 +3,7 @@ package bin;
|
||||
import kernel.peripherals.Peripherals.Peripheral;
|
||||
import lib.CLIAppBase;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Peripheral", ["ph", "peripheral"]))
|
||||
class Perf extends CLIAppBase {
|
||||
public function new() {
|
||||
registerSyncSubcommand("inspect", (args) -> {
|
||||
|
@ -5,6 +5,7 @@ import kernel.peripherals.Peripherals.Peripheral;
|
||||
|
||||
using tink.CoreApi;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Redstone", ["redstone", "rs"]))
|
||||
class Redstone extends CLIAppBase {
|
||||
public function new() {
|
||||
registerSyncSubcommand("on", (args) -> {
|
||||
|
@ -5,6 +5,7 @@ import lib.CLIAppBase;
|
||||
|
||||
using tink.CoreApi;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Service", ["srv"]))
|
||||
class Service extends CLIAppBase {
|
||||
public function new() {
|
||||
registerSyncSubcommand("start", (args) -> {
|
||||
|
@ -10,6 +10,7 @@ import kernel.ui.WindowContext;
|
||||
|
||||
using tink.CoreApi;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Terminal", ["terminal"]))
|
||||
class Terminal implements Process {
|
||||
private static inline final MAX_BACKLOG:Int = 100;
|
||||
|
||||
|
@ -4,6 +4,7 @@ import lib.CLIAppBase;
|
||||
|
||||
using tink.CoreApi;
|
||||
|
||||
@:build(macros.Binstore.includeBin("Turtle", ["turtle", "t"]))
|
||||
class Turtle extends CLIAppBase {
|
||||
public function new() {
|
||||
registerSyncSubcommand("forward", (args) -> {
|
||||
|
Loading…
Reference in New Issue
Block a user