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