rules: use short arguments for Mac compatibility

This commit is contained in:
iff 2025-05-22 11:33:22 +02:00
parent f33d9624b5
commit 5a64e6c6c8
4 changed files with 4 additions and 4 deletions

View file

@ -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:]}}'''
] ]

View file

@ -7,7 +7,7 @@ pattern = [
] ]
suggest = [ suggest = [
''' '''
{{command}} --recursive ''' {{command[0]}} -r {{command[1:]}} '''
] ]
[[match_err]] [[match_err]]

View file

@ -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:]}} '''
] ]

View file

@ -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\
" "