From f9326399c15596c876e82426ed25853deee3c09f Mon Sep 17 00:00:00 2001 From: Lisa Milne Date: Tue, 14 Nov 2023 14:53:45 +1000 Subject: [PATCH] clean up reboot code a bit, add help to reboot command --- clite/commands.js | 25 +++++++++++++++++++++++++ clite/core.js | 35 +++++++++++++++++++++++------------ 2 files changed, 48 insertions(+), 12 deletions(-) diff --git a/clite/commands.js b/clite/commands.js index 1587e26..e497c11 100644 --- a/clite/commands.js +++ b/clite/commands.js @@ -492,6 +492,31 @@ Options: clite.commands.load('reboot',function(args,env,io) { var stdio = io.include('stdio'); + function help() { + io.write(` +reboot - reboot the system, forcing reload of all code + +Options: +-? Print this help information + `); + } + + for (var i=1; i