beterraba

commit c4f335d62d44c63c7d1ea33e8aa37a3f7c3b11d0

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

server: dummy service status command

 cmd/beterrabad/executor.ha | 4 ++++
 cmd/beterrabad/socket.ha | 3 +++


diff --git a/cmd/beterrabad/executor.ha b/cmd/beterrabad/executor.ha
index a3360c40722028eb6f4907fba5bfb30cada85b59..4d57a8d3891e74d9b14617ea886755c66cffe143 100644
--- a/cmd/beterrabad/executor.ha
+++ b/cmd/beterrabad/executor.ha
@@ -7,6 +7,10 @@ use beterraba;
 
 type booterror = !(exec::error | exec::nocmd);
 
+fn status_service(cmdargs: str) str = {
+	return "TODO";
+};
+
 fn start_service(cmdargs: str) str = {
 	let dummy_serv: beterraba::servdef = beterraba::servdef {
 		name = "Dummy",




diff --git a/cmd/beterrabad/socket.ha b/cmd/beterrabad/socket.ha
index ce581a2799499a08cd24ef379bf5597bbe19c12d..7b316991939b7fda7ce543cf523f8c0029d1e7a5 100644
--- a/cmd/beterrabad/socket.ha
+++ b/cmd/beterrabad/socket.ha
@@ -193,6 +193,9 @@ 	switch (cmd) {
 	case "start" =>
 		let status = start_service(args);
 		fmt::fprintf(&buf, status)?;
+	case "status" =>
+		let status = status_service(args);
+		fmt::fprintf(&buf, status)?;
 	case "list" =>
 		let status = list_services(args, server);
 		fmt::fprintf(&buf, status)?;