mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-19 05:09:25 +03:00
Minor edits
This commit is contained in:
parent
790029e004
commit
4d63841b4a
@ -23,11 +23,11 @@ tide test -a
|
||||
### Style Guide
|
||||
|
||||
- `if` > `and` or `or`
|
||||
- `test` > `[...]`u
|
||||
- `test` > `[...]`
|
||||
- `printf` > `echo`
|
||||
- Long forms of flags > short forms
|
||||
- Exceptions: `set`, `set_color`, `function foo -a`, "common knowledge" options for commands like `rm -r`
|
||||
- Prefer pipes over command substitution when convenient (no extra commands)
|
||||
- Piping > command substitution (only when convenient, i.e no extra commands)
|
||||
|
||||
### Naming Conventions
|
||||
|
||||
@ -35,7 +35,7 @@ Local variables should be named in `camelCase`.
|
||||
|
||||
- `set -l numberOfNewlines`
|
||||
|
||||
Anything exposed to the shell or user--functions, global/universal variables, and files--should be named in `snake_case`, beginning with `tide_`. Prepend an underscore if user interaction is discouraged.
|
||||
Anything exposed to the shell or user--functions, global/universal variables, and files--should be named in `snake_case`, beginning with `tide_`. Prepend an underscore if the user in not meant to interact directly with it.
|
||||
|
||||
- `set -g _tide_left_prompt_height`
|
||||
- `set -U tide_right_prompt_items`
|
||||
|
@ -35,6 +35,11 @@ function _tide_sub_test
|
||||
set argv (basename --suffix='.fish' $testsDir/*)
|
||||
end
|
||||
|
||||
if test (count $argv) -lt 1
|
||||
_tide_test_help
|
||||
return 1
|
||||
end
|
||||
|
||||
for test in $argv
|
||||
fishtape "$testsDir/$test.fish" >$pending
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user