mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
rules: use short arguments for Mac compatibility
This commit is contained in:
parent
f33d9624b5
commit
5a64e6c6c8
4 changed files with 4 additions and 4 deletions
|
|
@ -7,5 +7,5 @@ pattern = [
|
||||||
suggest = [
|
suggest = [
|
||||||
'''
|
'''
|
||||||
#[err_contains(no such file or directory)]
|
#[err_contains(no such file or directory)]
|
||||||
{{command}} --parents '''
|
{{command[0]}} -p {{command[1:]}}'''
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ pattern = [
|
||||||
]
|
]
|
||||||
suggest = [
|
suggest = [
|
||||||
'''
|
'''
|
||||||
{{command}} --recursive '''
|
{{command[0]}} -r {{command[1:]}} '''
|
||||||
]
|
]
|
||||||
|
|
||||||
[[match_err]]
|
[[match_err]]
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ pattern = [ "no such file or directory" ]
|
||||||
suggest = [
|
suggest = [
|
||||||
'''
|
'''
|
||||||
#[!shell(nu)]
|
#[!shell(nu)]
|
||||||
mkdir --parents {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} &&
|
mkdir -p {{cmd::(?:\s)+(.*[\\\/])(?:\s)*}} &&
|
||||||
touch {{command[1:]}} '''
|
touch {{command[1:]}} '''
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,6 @@ case="regex: command"
|
||||||
command="touch dir/file"
|
command="touch dir/file"
|
||||||
error="no such file or directory"
|
error="no such file or directory"
|
||||||
expect="\
|
expect="\
|
||||||
mkdir --parents dir/ &&
|
mkdir -p dir/ &&
|
||||||
touch dir/file\
|
touch dir/file\
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue