diff options
author | dvs1 | 2024-10-28 10:30:16 +1000 |
---|---|---|
committer | dvs1 | 2024-10-28 10:30:16 +1000 |
commit | 4edd85aa8156150f1fa7a3026a922b49366b642d (patch) | |
tree | b2beaa4eb8a4396a9688d33ebed744b01145ca02 /test_.lua | |
parent | Allow -abc style, expand to -a -b -c, and can put -- in front of any option. (diff) | |
download | JackOnAllDevices-4edd85aa8156150f1fa7a3026a922b49366b642d.zip JackOnAllDevices-4edd85aa8156150f1fa7a3026a922b49366b642d.tar.gz JackOnAllDevices-4edd85aa8156150f1fa7a3026a922b49366b642d.tar.bz2 JackOnAllDevices-4edd85aa8156150f1fa7a3026a922b49366b642d.tar.xz |
Consistantly use single quotes for Lua strings, unless otherwise needed.
Old habits die hard. lol
Diffstat (limited to '')
-rwxr-xr-x | test_.lua | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -41,8 +41,8 @@ local options = | |||
41 | _.killEmAll{'jmcore', 'qjackctl'} | 41 | _.killEmAll{'jmcore', 'qjackctl'} |
42 | -- Catia is python, and no easy way to kill it. | 42 | -- Catia is python, and no easy way to kill it. |
43 | -- Also it keeps jackdbus alive, no matter how hard you kill it. | 43 | -- Also it keeps jackdbus alive, no matter how hard you kill it. |
44 | __"pkill -TERM -u $USER -f catia":Do() | 44 | __'pkill -TERM -u $USER -f catia':Do() |
45 | __"sleep 2":Do() | 45 | __'sleep 2':Do() |
46 | _.killEmAll{'jackdbus', 'a2jmidid'} | 46 | _.killEmAll{'jackdbus', 'a2jmidid'} |
47 | ]=] | 47 | ]=] |
48 | end | 48 | end |
@@ -51,10 +51,10 @@ local options = | |||
51 | options['restart'] = options['start'] | 51 | options['restart'] = options['start'] |
52 | options['force-reload'] = options['start'] | 52 | options['force-reload'] = options['start'] |
53 | 53 | ||
54 | print("start = " .. options.start.value) | 54 | print('start = ' .. options.start.value) |
55 | _.parse(arg, options, 'test_') | 55 | _.parse(arg, options, 'test_') |
56 | print("start = " .. options.start.value) | 56 | print('start = ' .. options.start.value) |
57 | print("stop = " .. options.stop.value) | 57 | print('stop = ' .. options.stop.value) |
58 | 58 | ||
59 | 59 | ||
60 | 60 | ||
@@ -112,7 +112,7 @@ print(__[[#!/usr/bin/tcc -run | |||
112 | print('') | 112 | print('') |
113 | 113 | ||
114 | __[[#!/usr/bin/env luajit | 114 | __[[#!/usr/bin/env luajit |
115 | print('Hello ' .. "world " .. [=[from]=] .. " Lua.") | 115 | print('Hello ' .. "world " .. [=[from]=] .. ' Lua.') |
116 | ]]:log():show():Do() | 116 | ]]:log():show():Do() |
117 | print('') | 117 | print('') |
118 | 118 | ||