From 08f4c2b2e6a4223283f51cbc2018440840ea62d9 Mon Sep 17 00:00:00 2001 From: sbosse Date: Tue, 27 Aug 2024 00:15:31 +0200 Subject: [PATCH] Tue 27 Aug 00:14:56 CEST 2024 --- test/test-jamshlib.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/test-jamshlib.js diff --git a/test/test-jamshlib.js b/test/test-jamshlib.js new file mode 100644 index 0000000..a6f8ae1 --- /dev/null +++ b/test/test-jamshlib.js @@ -0,0 +1,25 @@ +var Shell = require('../build/jamsh/libjamsh.debug.js') + +var options = { + modules : { + }, + nameopts : {length:8, memorable:true, lowercase:true}, + Nameopts : {length:8, memorable:true, uppercase:true}, + output : function (msg) { + console.log('[LOG] '+msg); + }, + outputAgent : function (msg) { + console.log('[AGE] '+msg); + }, + outputAsync : function (msg) { + console.log('[ASN] '+msg); + }, + server : true, +} +var cmd = Shell(options).init().cmd(); + +cmd.port(DIR.IP('http://localhost:10001')); +cmd.start() + +cmd.exec('stats("vm")'); +cmd.exec('stats("conn")');