added bin info to other bins

This commit is contained in:
Niklas Kapelle 2024-01-22 23:36:00 +01:00
parent 295d284bc1
commit f109305f48
Signed by: niklas
GPG Key ID: 4EB651B36D841D16
13 changed files with 13 additions and 6 deletions

View File

@ -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) -> {

View File

@ -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) -> {

View File

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

View File

@ -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() {}

View File

@ -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) -> {

View File

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

View File

@ -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() {}

View File

@ -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) -> {

View File

@ -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) -> {

View File

@ -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) -> {

View File

@ -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) -> {

View File

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

View File

@ -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) -> {