diff options
author | dvs1 | 2024-10-24 13:28:18 +1000 |
---|---|---|
committer | dvs1 | 2024-10-24 13:28:18 +1000 |
commit | e4fcdb2458635ca3c034fcd2df129f53d9e154e5 (patch) | |
tree | daa0ed1e8fe1b87b231c744ee039c9649b4861c6 /test_.lua | |
parent | Split up the audio output a little nicer. (diff) | |
download | JackOnAllDevices-e4fcdb2458635ca3c034fcd2df129f53d9e154e5.zip JackOnAllDevices-e4fcdb2458635ca3c034fcd2df129f53d9e154e5.tar.gz JackOnAllDevices-e4fcdb2458635ca3c034fcd2df129f53d9e154e5.tar.bz2 JackOnAllDevices-e4fcdb2458635ca3c034fcd2df129f53d9e154e5.tar.xz |
Some more tidying up.
Diffstat (limited to '')
-rwxr-xr-x | test_.lua | 38 |
1 files changed, 10 insertions, 28 deletions
@@ -13,27 +13,13 @@ This is part of the blah blah blah... | |||
13 | 13 | ||
14 | local options = | 14 | local options = |
15 | { | 15 | { |
16 | start = | 16 | start = {help = 'Command to start the scanning process, for Sys V init.',}, |
17 | { | ||
18 | help = 'Command to start the scanning process, for Sys V init.', | ||
19 | }, | ||
20 | restart = {start}, | 17 | restart = {start}, |
21 | ['force-reload'] = {start}, | 18 | ['force-reload'] = {start}, |
22 | status = | 19 | status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, |
23 | { | 20 | stop = {help = 'Command to stop the scanning process, for Sys V init.',}, |
24 | help = 'Command to check the status of the scanning process, for Sys V init.', | 21 | JACK = {help = 'Command to start the JACK stuff, for users.',}, |
25 | }, | 22 | STOP = {help = 'Command to stop the JACK stuff, for users.', |
26 | stop = | ||
27 | { | ||
28 | help = 'Command to stop the scanning process, for Sys V init.', | ||
29 | }, | ||
30 | JACK = | ||
31 | { | ||
32 | help = 'Command to start the JACK stuff, for users.', | ||
33 | }, | ||
34 | STOP = | ||
35 | { | ||
36 | help = 'Command to stop the JACK stuff, for users.', | ||
37 | func = function(a, args, i) | 23 | func = function(a, args, i) |
38 | --[=[ | 24 | --[=[ |
39 | _.killEmAll{'qsynth'} | 25 | _.killEmAll{'qsynth'} |
@@ -60,9 +46,7 @@ local options = | |||
60 | ]=] | 46 | ]=] |
61 | end | 47 | end |
62 | }, | 48 | }, |
63 | help = | 49 | help = {help = 'Print help.', |
64 | { | ||
65 | help = 'Print help.', | ||
66 | func = function(a, args, i) | 50 | func = function(a, args, i) |
67 | print(Help) | 51 | print(Help) |
68 | os.exit(0) | 52 | os.exit(0) |
@@ -96,17 +80,15 @@ for i,l in ipairs(__'free -h':log():Do().lines) do | |||
96 | end | 80 | end |
97 | print('') | 81 | print('') |
98 | 82 | ||
99 | __'uname -a':log():also'free -h':show():Do() | ||
100 | print('') | ||
101 | |||
102 | for i,l in ipairs(__'uname -a\nfree -h':log():Do().lines) do | 83 | for i,l in ipairs(__'uname -a\nfree -h':log():Do().lines) do |
103 | print(l) | 84 | print(l) |
104 | end | 85 | end |
105 | print('') | 86 | print('') |
106 | 87 | ||
107 | for i,l in ipairs(__{'uname -a', 'free -h'}:log():Do().lines) do | 88 | __'uname -a':log():also'free -h':show():Do() |
108 | print(l) | 89 | print('') |
109 | end | 90 | |
91 | __{'uname -a', 'free -h'}:log():show():Do() | ||
110 | print('') | 92 | print('') |
111 | 93 | ||
112 | 94 | ||