diff --git a/clite/commands.js b/clite/commands.js index d840e3e..dc41ea8 100644 --- a/clite/commands.js +++ b/clite/commands.js @@ -1535,6 +1535,53 @@ Options: return main(args); }); +clite.commands.load('sleep',function(args,env,io) { + var stdio = io.include('stdio'); + var stdlib = io.include('stdlib'); + + function help() { + stdio.printf(` +sleep - suspend execution for a time +Usage: sleep [OPTION] + +Options: +-? Print this help information +`); + } + + function scb(r) { + io.exit(0); + } + + function main(args) { + var seconds = 0; + for (var i=1; i