From e4fcdb2458635ca3c034fcd2df129f53d9e154e5 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Thu, 24 Oct 2024 13:28:18 +1000 Subject: Some more tidying up. --- test_.lua | 38 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 28 deletions(-) (limited to 'test_.lua') diff --git a/test_.lua b/test_.lua index 497b896..e559238 100755 --- a/test_.lua +++ b/test_.lua @@ -13,27 +13,13 @@ This is part of the blah blah blah... local options = { - start = - { - help = 'Command to start the scanning process, for Sys V init.', - }, + start = {help = 'Command to start the scanning process, for Sys V init.',}, restart = {start}, ['force-reload'] = {start}, - status = - { - help = 'Command to check the status of the scanning process, for Sys V init.', - }, - stop = - { - help = 'Command to stop the scanning process, for Sys V init.', - }, - JACK = - { - help = 'Command to start the JACK stuff, for users.', - }, - STOP = - { - help = 'Command to stop the JACK stuff, for users.', + status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, + stop = {help = 'Command to stop the scanning process, for Sys V init.',}, + JACK = {help = 'Command to start the JACK stuff, for users.',}, + STOP = {help = 'Command to stop the JACK stuff, for users.', func = function(a, args, i) --[=[ _.killEmAll{'qsynth'} @@ -60,9 +46,7 @@ local options = ]=] end }, - help = - { - help = 'Print help.', + help = {help = 'Print help.', func = function(a, args, i) print(Help) os.exit(0) @@ -96,17 +80,15 @@ for i,l in ipairs(__'free -h':log():Do().lines) do end print('') -__'uname -a':log():also'free -h':show():Do() -print('') - for i,l in ipairs(__'uname -a\nfree -h':log():Do().lines) do print(l) end print('') -for i,l in ipairs(__{'uname -a', 'free -h'}:log():Do().lines) do - print(l) -end +__'uname -a':log():also'free -h':show():Do() +print('') + +__{'uname -a', 'free -h'}:log():show():Do() print('') -- cgit v1.1