diff options
author | dvs1 | 2024-10-24 18:23:09 +1000 |
---|---|---|
committer | dvs1 | 2024-10-24 18:23:09 +1000 |
commit | 7371925ae522f3e982f1b645646476d04742e21c (patch) | |
tree | 90b8493e75ff7be647df026e2986d4e9952fda5b | |
parent | Some more tidying up. (diff) | |
download | JackOnAllDevices-7371925ae522f3e982f1b645646476d04742e21c.zip JackOnAllDevices-7371925ae522f3e982f1b645646476d04742e21c.tar.gz JackOnAllDevices-7371925ae522f3e982f1b645646476d04742e21c.tar.bz2 JackOnAllDevices-7371925ae522f3e982f1b645646476d04742e21c.tar.xz |
Rename also to Then.
-rwxr-xr-x | _.lua | 2 | ||||
-rwxr-xr-x | test_.lua | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -156,7 +156,7 @@ __ = function(c) | |||
156 | function exe:log() self.logging = true return self end | 156 | function exe:log() self.logging = true return self end |
157 | function exe:show() self.showing = true return self end | 157 | function exe:show() self.showing = true return self end |
158 | -- Should be called "then" but that's a reserved word. | 158 | -- Should be called "then" but that's a reserved word. |
159 | function exe:also(c) if nil == c then c = '' else c = ' ' .. c end self.cmd = self.cmd .. '; ' .. c .. ' ' return self end | 159 | function exe:Then(c) if nil == c then c = '' else c = ' ' .. c end self.cmd = self.cmd .. '; ' .. c .. ' ' return self end |
160 | function exe:And(c) if nil == c then c = '' else c = ' ' .. c end self.cmd = self.cmd .. ' && ' .. c .. ' ' return self end | 160 | function exe:And(c) if nil == c then c = '' else c = ' ' .. c end self.cmd = self.cmd .. ' && ' .. c .. ' ' return self end |
161 | function exe:Or(c) if nil == c then c = '' else c = ' ' .. c end self.cmd = self.cmd .. ' || ' .. c .. ' ' return self end | 161 | function exe:Or(c) if nil == c then c = '' else c = ' ' .. c end self.cmd = self.cmd .. ' || ' .. c .. ' ' return self end |
162 | function exe:noErr() self.cmd = self.cmd .. ' 2>/dev/null ' return self end | 162 | function exe:noErr() self.cmd = self.cmd .. ' 2>/dev/null ' return self end |
@@ -85,7 +85,7 @@ for i,l in ipairs(__'uname -a\nfree -h':log():Do().lines) do | |||
85 | end | 85 | end |
86 | print('') | 86 | print('') |
87 | 87 | ||
88 | __'uname -a':log():also'free -h':show():Do() | 88 | __'uname -a':log():Then'free -h':show():Do() |
89 | print('') | 89 | print('') |
90 | 90 | ||
91 | __{'uname -a', 'free -h'}:log():show():Do() | 91 | __{'uname -a', 'free -h'}:log():show():Do() |