Skip to content

Commit 97feb1e

Browse files
committed
docs(help): write all docstrings in the imperative
1 parent 98fe628 commit 97feb1e

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

doc/please.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ command to get you started.
125125
Lua module: please *please*
126126

127127
setup({opts}) *please.setup()*
128-
Updates the configuration with the provided {opts}. Should only be called
128+
Update the configuration with the provided {opts}. Should only be called
129129
if you want to change the defaults which are shown below.
130130

131131
Example: >lua
@@ -141,9 +141,9 @@ setup({opts}) *please.setup()*
141141
history items to store for each repository.
142142

143143
build() *please.build()*
144-
If the current file is a `BUILD` file, builds the target which is under
145-
the cursor. Otherwise, builds the target which takes the current file as
146-
an input.
144+
If the current file is a `BUILD` file, build the target which is under the
145+
cursor. Otherwise, build the target which takes the current file as an
146+
input.
147147

148148
run() *please.run()*
149149
If the current file is a `BUILD` file, run the target which is under the
@@ -199,27 +199,27 @@ history() *please.history()*
199199
again.
200200

201201
clear_history() *please.clear_history()*
202-
Clears the command history for the current repository.
202+
Clear the command history for the current repository.
203203

204204
set_profile() *please.set_profile()*
205-
Sets the profile that will be used by |please.build()|, |please.run()|,
205+
Set the profile that will be used by |please.build()|, |please.run()|,
206206
|please.test()|, |please.debug()|, and |please.command()|. Profiles will
207207
be searched for in `/etc/please`, `~/.config/please`, and the current
208208
repository.
209209

210210
maximise_popup() *please.maximise_popup()*
211-
Maximises the popup which was most recently quit or minimised.
211+
Maximise the popup which was most recently quit or minimised.
212212

213213
jump_to_target() *please.jump_to_target()*
214-
Jumps to the location of the target which takes the current file as an
214+
Jump to the location of the target which takes the current file as an
215215
input.
216216

217217
The cursor will be moved to where the target is created if it can be found
218218
which should be the case for all targets except for those with names which
219219
are generated when the `BUILD` file is executed.
220220

221221
look_up_target() *please.look_up_target()*
222-
Looks up a target by its build label and jumps to its location. If the
222+
Look up a target by its build label and jumps to its location. If the
223223
cursor is already on a build label, then this will be used. Otherwise,
224224
you'll be prompted for one.
225225

lua/please.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ local config = {
3434
---@class please.Opts
3535
---@field max_history_items integer? The maximum number of history items to store for each repository.
3636

37-
---Updates the configuration with the provided {opts}. Should only be called if you want to change the defaults which
38-
---are shown below.
37+
---Update the configuration with the provided {opts}. Should only be called if you want to change the defaults which are
38+
---shown below.
3939
---
4040
---Example:
4141
---```lua
@@ -197,8 +197,8 @@ local function get_repo_root(path)
197197
return nil, "Couldn't locate the repo root. Are you sure you're inside a plz repo?"
198198
end
199199

200-
---If the current file is a `BUILD` file, builds the target which is under the cursor. Otherwise, builds the target
201-
---which takes the current file as an input.
200+
---If the current file is a `BUILD` file, build the target which is under the cursor. Otherwise, build the target which
201+
---takes the current file as an input.
202202
function M.build()
203203
logging.log_call('please.build')
204204

@@ -441,7 +441,7 @@ function M.history()
441441
end)
442442
end
443443

444-
---Clears the command history for the current repository.
444+
---Clear the command history for the current repository.
445445
function M.clear_history()
446446
logging.log_call('please.clear_history')
447447

@@ -459,7 +459,7 @@ function M.clear_history()
459459
end)
460460
end
461461

462-
---Sets the profile that will be used by [please.build()], [please.run()], [please.test()], [please.debug()], and
462+
---Set the profile that will be used by [please.build()], [please.run()], [please.test()], [please.debug()], and
463463
---[please.command()]. Profiles will be searched for in `/etc/please`, `~/.config/please`, and the current repository.
464464
function M.set_profile()
465465
logging.log_call('please.profile')
@@ -510,7 +510,7 @@ function M.set_profile()
510510
end)
511511
end
512512

513-
---Maximises the popup which was most recently quit or minimised.
513+
---Maximise the popup which was most recently quit or minimised.
514514
function M.maximise_popup()
515515
logging.log_call('please.maximise_popup')
516516
if runner.current then
@@ -520,7 +520,7 @@ function M.maximise_popup()
520520
end
521521
end
522522

523-
---Jumps to the location of the target which takes the current file as an input.
523+
---Jump to the location of the target which takes the current file as an input.
524524
---
525525
---The cursor will be moved to where the target is created if it can be found which should be the case for all targets
526526
---except for those with names which are generated when the `BUILD` file is executed.
@@ -540,7 +540,7 @@ function M.jump_to_target()
540540
end)
541541
end
542542

543-
---Looks up a target by its build label and jumps to its location. If the cursor is already on a build label, then this
543+
---Look up a target by its build label and jumps to its location. If the cursor is already on a build label, then this
544544
---will be used. Otherwise, you'll be prompted for one.
545545
---
546546
---The cursor will be moved to where the target is created if it can be found which should be the case for all targets

0 commit comments

Comments
 (0)