Skip to content

Commit a293b81

Browse files
authored
Merge pull request #1669 from threexc/tgamblin/labgrid-client-docs-fix
man/labgrid-client: improve readability
2 parents a868af2 + 63ee87b commit a293b81

File tree

2 files changed

+91
-91
lines changed

2 files changed

+91
-91
lines changed

man/labgrid-client.1

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -133,41 +133,41 @@ and name is its name. Wild cards in match patterns are explicitly allowed, *
133133
matches anything.
134134
.SH LABGRID-CLIENT COMMANDS
135135
.sp
136-
\fBmonitor\fP Monitor events from the coordinator
136+
\fBmonitor\fP Monitor events from the coordinator
137137
.sp
138-
\fBresources (r)\fP List available resources
138+
\fBresources (r)\fP List available resources
139139
.sp
140-
\fBplaces (p)\fP List available places
140+
\fBplaces (p)\fP List available places
141141
.sp
142-
\fBwho\fP List acquired places by user
142+
\fBwho\fP List acquired places by user
143143
.sp
144-
\fBshow\fP Show a place and related resources
144+
\fBshow\fP Show a place and related resources
145145
.sp
146-
\fBcreate\fP Add a new place (name supplied by \-p parameter)
146+
\fBcreate\fP Add a new place (name supplied by \-p parameter)
147147
.sp
148-
\fBdelete\fP Delete an existing place
148+
\fBdelete\fP Delete an existing place
149149
.sp
150-
\fBadd\-alias\fP alias Add an alias to a place
150+
\fBadd\-alias\fP \fB[alias]\fP Add an alias to a place
151151
.sp
152-
\fBdel\-alias\fP alias Delete an alias from a place
152+
\fBdel\-alias\fP \fB[alias]\fP Delete an alias from a place
153153
.sp
154-
\fBset\-comment\fP comment Update or set the place comment
154+
\fBset\-comment\fP \fB[comment]\fP Update or set the place comment
155155
.sp
156-
\fBset\-tags\fP key=value Set place tags (key=value)
156+
\fBset\-tags\fP \fB[key=value]\fP Set place tags (key=value)
157157
.sp
158-
\fBadd\-match\fP match Add one (or multiple) match pattern(s) to a place, see MATCHES
158+
\fBadd\-match\fP \fB[match]\fP Add one (or multiple) match pattern(s) to a place, see MATCHES
159159
.sp
160-
\fBdel\-match\fP match Delete one (or multiple) match pattern(s) from a place, see MATCHES
160+
\fBdel\-match\fP \fB[match]\fP Delete one (or multiple) match pattern(s) from a place, see MATCHES
161161
.sp
162-
\fBadd\-named\-match\fP match name Add one match pattern with a name to a place
162+
\fBadd\-named\-match\fP \fB[match]\fP \fB[name]\fP Add one match pattern with a name to a place
163163
.sp
164-
\fBacquire (lock)\fP Acquire a place
164+
\fBacquire (lock)\fP Acquire a place
165165
.sp
166-
\fBallow\fP user Allow another user to access a place
166+
\fBallow\fP \fB[user]\fP Allow another user to access a place
167167
.sp
168-
\fBrelease (unlock)\fP Release a place
168+
\fBrelease (unlock)\fP Release a place
169169
.sp
170-
\fBrelease\-from\fP host/user Atomically release a place, but only if acquired by a specific user.
170+
\fBrelease\-from\fP \fB[host/user]\fP Atomically release a place, but only if acquired by a specific user.
171171
.INDENT 0.0
172172
.INDENT 3.5
173173
Note that this command returns success as long
@@ -177,59 +177,59 @@ not at all.
177177
.UNINDENT
178178
.UNINDENT
179179
.sp
180-
\fBenv\fP Generate a labgrid environment file for a place
180+
\fBenv\fP Generate a labgrid environment file for a place
181181
.sp
182-
\fBpower (pw)\fP action Change (or get) a place\(aqs power status, where action is one of get, on, off, cycle
182+
\fBpower (pw)\fP \fB[action]\fP Change (or get) a place\(aqs power status, where action is one of get, on, off, cycle
183183
.sp
184-
\fBio\fP action [name] Interact with GPIO (OneWire, relays, ...) devices, where action is one of high, low, get
184+
\fBio\fP \fB[action]\fP \fB[name]\fP Interact with GPIO (OneWire, relays, ...) devices, where action is one of high, low, get
185185
.sp
186-
\fBconsole (con)\fP [name] Connect to the console
186+
\fBconsole (con)\fP \fB[name]\fP Connect to the console
187187
.sp
188-
\fBdfu\fP arg Run dfu commands
188+
\fBdfu\fP \fB[arg]\fP Run dfu commands
189189
.sp
190-
\fBfastboot\fP arg Run fastboot with argument
190+
\fBfastboot\fP \fB[arg]\fP Run fastboot with argument
191191
.sp
192-
\fBflashscript\fP script arg Run arbitrary script with arguments to flash device
192+
\fBflashscript\fP \fB[script]\fP \fB[arg]\fP Run arbitrary script with arguments to flash device
193193
.sp
194-
\fBbootstrap\fP filename Start a bootloader
194+
\fBbootstrap\fP \fB[filename]\fP Start a bootloader
195195
.sp
196-
\fBsd\-mux\fP action Switch USB SD Muxer, where action is one of dut (device\-under\-test), host, off
196+
\fBsd\-mux\fP \fB[action]\fP Switch USB SD Muxer, where action is one of dut (device\-under\-test), host, off
197197
.sp
198-
\fBusb\-mux\fP action Switch USB Muxer, where action is one of off, dut\-device, host\-dut, host\-device, host\-dut+host\-device
198+
\fBusb\-mux\fP \fB[action]\fP Switch USB Muxer, where action is one of off, dut\-device, host\-dut, host\-device, host\-dut+host\-device
199199
.sp
200-
\fBssh\fP [command] Connect via SSH. Additional arguments are passed to ssh.
200+
\fBssh\fP \fB[command]\fP Connect via SSH. Additional arguments are passed to ssh.
201201
.sp
202-
\fBscp\fP source destination Transfer file via scp (use \(aq:dir/file\(aq for the remote side)
202+
\fBscp\fP \fB[source]\fP \fB[destination]\fP Transfer file via scp (use \(aq:dir/file\(aq for the remote side)
203203
.sp
204-
\fBrsync\fP source destination Transfer files via rsync (use \(aq:dir/file\(aq for the remote side)
204+
\fBrsync\fP \fB[source]\fP \fB[destination]\fP Transfer files via rsync (use \(aq:dir/file\(aq for the remote side)
205205
.sp
206-
\fBsshfs\fP remotepath mountpoint Mount a remote path via sshfs
206+
\fBsshfs\fP \fB[remotepath]\fP \fB[mountpoint]\fP Mount a remote path via sshfs
207207
.sp
208-
\fBforward\fP Forward local port to remote target
208+
\fBforward\fP Forward local port to remote target
209209
.sp
210-
\fBtelnet\fP Connect via telnet
210+
\fBtelnet\fP Connect via telnet
211211
.sp
212-
\fBvideo\fP Start a video stream
212+
\fBvideo\fP Start a video stream
213213
.sp
214-
\fBaudio\fP Start an audio stream
214+
\fBaudio\fP Start an audio stream
215215
.sp
216-
\fBtmc\fP command Control a USB TMC device
216+
\fBtmc\fP \fB[command]\fP Control a USB TMC device
217217
.sp
218-
\fBwrite\-files\fP filename(s) Copy files onto mass storage device
218+
\fBwrite\-files\fP \fB[filename(s)]\fP Copy files onto mass storage device
219219
.sp
220-
\fBwrite\-image\fP filename Write images onto block devices (USBSDMux, USB Sticks, …)
220+
\fBwrite\-image\fP \fB[filename]\fP Write images onto block devices (USBSDMux, USB Sticks, …)
221221
.sp
222-
\fBreserve\fP filter Create a reservation
222+
\fBreserve\fP \fB[filter]\fP Create a reservation
223223
.sp
224-
\fBcancel\-reservation\fP token Cancel a pending reservation
224+
\fBcancel\-reservation\fP \fB[token]\fP Cancel a pending reservation
225225
.sp
226-
\fBwait\fP token Wait for a reservation to be allocated
226+
\fBwait\fP \fB[token]\fP Wait for a reservation to be allocated
227227
.sp
228-
\fBreservations\fP List current reservations
228+
\fBreservations\fP List current reservations
229229
.sp
230-
\fBexport\fP filename Export driver information to file (needs environment with drivers)
230+
\fBexport\fP \fB[filename]\fP Export driver information to file (needs environment with drivers)
231231
.sp
232-
\fBversion\fP Print the labgrid version
232+
\fBversion\fP Print the labgrid version
233233
.SH ADDING NAMED RESOURCES
234234
.sp
235235
If a target contains multiple Resources of the same type, named matches need to

man/labgrid-client.rst

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -126,100 +126,100 @@ matches anything.
126126

127127
LABGRID-CLIENT COMMANDS
128128
-----------------------
129-
``monitor`` Monitor events from the coordinator
129+
``monitor`` Monitor events from the coordinator
130130

131-
``resources (r)`` List available resources
131+
``resources (r)`` List available resources
132132

133-
``places (p)`` List available places
133+
``places (p)`` List available places
134134

135-
``who`` List acquired places by user
135+
``who`` List acquired places by user
136136

137-
``show`` Show a place and related resources
137+
``show`` Show a place and related resources
138138

139-
``create`` Add a new place (name supplied by -p parameter)
139+
``create`` Add a new place (name supplied by -p parameter)
140140

141-
``delete`` Delete an existing place
141+
``delete`` Delete an existing place
142142

143-
``add-alias`` alias Add an alias to a place
143+
``add-alias`` ``[alias]`` Add an alias to a place
144144

145-
``del-alias`` alias Delete an alias from a place
145+
``del-alias`` ``[alias]`` Delete an alias from a place
146+
147+
``set-comment`` ``[comment]`` Update or set the place comment
146148

147-
``set-comment`` comment Update or set the place comment
149+
``set-tags`` ``[key=value]`` Set place tags (key=value)
148150

149-
``set-tags`` key=value Set place tags (key=value)
151+
``add-match`` ``[match]`` Add one (or multiple) match pattern(s) to a place, see MATCHES
150152

151-
``add-match`` match Add one (or multiple) match pattern(s) to a place, see MATCHES
153+
``del-match`` ``[match]`` Delete one (or multiple) match pattern(s) from a place, see MATCHES
152154

153-
``del-match`` match Delete one (or multiple) match pattern(s) from a place, see MATCHES
155+
``add-named-match`` ``[match]`` ``[name]`` Add one match pattern with a name to a place
154156

155-
``add-named-match`` match name Add one match pattern with a name to a place
157+
``acquire (lock)`` Acquire a place
156158

157-
``acquire (lock)`` Acquire a place
159+
``allow`` ``[user]`` Allow another user to access a place
158160

159-
``allow`` user Allow another user to access a place
161+
``release (unlock)`` Release a place
160162

161-
``release (unlock)`` Release a place
162-
163-
``release-from`` host/user Atomically release a place, but only if acquired by a specific user.
163+
``release-from`` ``[host/user]`` Atomically release a place, but only if acquired by a specific user.
164164

165165
Note that this command returns success as long
166166
as the specified user no longer owns the place,
167167
meaning it may be acquired by another user or
168168
not at all.
169169

170-
``env`` Generate a labgrid environment file for a place
170+
``env`` Generate a labgrid environment file for a place
171171

172-
``power (pw)`` action Change (or get) a place's power status, where action is one of get, on, off, cycle
172+
``power (pw)`` ``[action]`` Change (or get) a place's power status, where action is one of get, on, off, cycle
173173

174-
``io`` action [name] Interact with GPIO (OneWire, relays, ...) devices, where action is one of high, low, get
174+
``io`` ``[action]`` ``[name]`` Interact with GPIO (OneWire, relays, ...) devices, where action is one of high, low, get
175175

176-
``console (con)`` [name] Connect to the console
176+
``console (con)`` ``[name]`` Connect to the console
177177

178-
``dfu`` arg Run dfu commands
178+
``dfu`` ``[arg]`` Run dfu commands
179179

180-
``fastboot`` arg Run fastboot with argument
180+
``fastboot`` ``[arg]`` Run fastboot with argument
181181

182-
``flashscript`` script arg Run arbitrary script with arguments to flash device
182+
``flashscript`` ``[script]`` ``[arg]`` Run arbitrary script with arguments to flash device
183183

184-
``bootstrap`` filename Start a bootloader
184+
``bootstrap`` ``[filename]`` Start a bootloader
185185

186-
``sd-mux`` action Switch USB SD Muxer, where action is one of dut (device-under-test), host, off
186+
``sd-mux`` ``[action]`` Switch USB SD Muxer, where action is one of dut (device-under-test), host, off
187187

188-
``usb-mux`` action Switch USB Muxer, where action is one of off, dut-device, host-dut, host-device, host-dut+host-device
188+
``usb-mux`` ``[action]`` Switch USB Muxer, where action is one of off, dut-device, host-dut, host-device, host-dut+host-device
189189

190-
``ssh`` [command] Connect via SSH. Additional arguments are passed to ssh.
190+
``ssh`` ``[command]`` Connect via SSH. Additional arguments are passed to ssh.
191191

192-
``scp`` source destination Transfer file via scp (use ':dir/file' for the remote side)
192+
``scp`` ``[source]`` ``[destination]`` Transfer file via scp (use ':dir/file' for the remote side)
193193

194-
``rsync`` source destination Transfer files via rsync (use ':dir/file' for the remote side)
194+
``rsync`` ``[source]`` ``[destination]`` Transfer files via rsync (use ':dir/file' for the remote side)
195195

196-
``sshfs`` remotepath mountpoint Mount a remote path via sshfs
196+
``sshfs`` ``[remotepath]`` ``[mountpoint]`` Mount a remote path via sshfs
197197

198-
``forward`` Forward local port to remote target
198+
``forward`` Forward local port to remote target
199199

200-
``telnet`` Connect via telnet
200+
``telnet`` Connect via telnet
201201

202-
``video`` Start a video stream
202+
``video`` Start a video stream
203203

204-
``audio`` Start an audio stream
204+
``audio`` Start an audio stream
205205

206-
``tmc`` command Control a USB TMC device
206+
``tmc`` ``[command]`` Control a USB TMC device
207207

208-
``write-files`` filename(s) Copy files onto mass storage device
208+
``write-files`` ``[filename(s)]`` Copy files onto mass storage device
209209

210-
``write-image`` filename Write images onto block devices (USBSDMux, USB Sticks, …)
210+
``write-image`` ``[filename]`` Write images onto block devices (USBSDMux, USB Sticks, …)
211211

212-
``reserve`` filter Create a reservation
212+
``reserve`` ``[filter]`` Create a reservation
213213

214-
``cancel-reservation`` token Cancel a pending reservation
214+
``cancel-reservation`` ``[token]`` Cancel a pending reservation
215215

216-
``wait`` token Wait for a reservation to be allocated
216+
``wait`` ``[token]`` Wait for a reservation to be allocated
217217

218-
``reservations`` List current reservations
218+
``reservations`` List current reservations
219219

220-
``export`` filename Export driver information to file (needs environment with drivers)
220+
``export`` ``[filename]`` Export driver information to file (needs environment with drivers)
221221

222-
``version`` Print the labgrid version
222+
``version`` Print the labgrid version
223223

224224
ADDING NAMED RESOURCES
225225
----------------------

0 commit comments

Comments
 (0)