mirror of https://github.com/CrimsonTome/tldr.git
git-commit, rubocop: use grouped parameters (#13636)
Followup to the https://github.com/tldr-pages/tldr/pulls/13609 to update `git-commit` and `rubocop` pages for English translation/pull/28/head
parent
3332b48ec1
commit
bef3ac7c95
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
- Commit only specific (already staged) files:
|
- Commit only specific (already staged) files:
|
||||||
|
|
||||||
`git commit {{path/to/file1}} {{path/to/file2}}`
|
`git commit {{path/to/file1 path/to/file2 ...}}`
|
||||||
|
|
||||||
- Create a commit, even if there are no staged files:
|
- Create a commit, even if there are no staged files:
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
- Check one or more specific files or directories:
|
- Check one or more specific files or directories:
|
||||||
|
|
||||||
`rubocop {{path/to/file}} {{path/to/directory}}`
|
`rubocop {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||||
|
|
||||||
- Write output to file:
|
- Write output to file:
|
||||||
|
|
||||||
|
@ -21,11 +21,11 @@
|
||||||
|
|
||||||
- Exclude a cop:
|
- Exclude a cop:
|
||||||
|
|
||||||
`rubocop --except {{cop_1}} {{cop_2}}`
|
`rubocop --except {{cop1 cop2 ...}}`
|
||||||
|
|
||||||
- Run only specified cops:
|
- Run only specified cops:
|
||||||
|
|
||||||
`rubocop --only {{cop_1}} {{cop_2}}`
|
`rubocop --only {{cop1 cop2 ...}}`
|
||||||
|
|
||||||
- Auto-correct files (experimental):
|
- Auto-correct files (experimental):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue