rules: add touch; update formats

This commit is contained in:
iff 2023-08-07 18:35:07 +02:00
parent 2f3ba438ea
commit e214cf24ba
8 changed files with 26 additions and 30 deletions

View file

@ -72,8 +72,7 @@ pattern = [
suggest = [
'''
#[cmd_contains(checkout)]
git checkout {{typo[2]({{shell(git branch)}})}}
'''
git checkout {{typo[2]({{shell(git branch)}})}} '''
]
[[match_err]]
@ -83,8 +82,7 @@ pattern = [
suggest = [
'''
#[cmd_contains(push)]
git push --set-upstream origin {{shell(git rev-parse --abbrev-ref HEAD)}}
'''
git push --set-upstream origin {{shell(git rev-parse --abbrev-ref HEAD)}} '''
]
[[match_err]]
@ -94,8 +92,7 @@ pattern = [
suggest = [
'''
#[cmd_contains(pull)]
git pull --set-upstream origin {{shell(git rev-parse --abbrev-ref HEAD)}}
'''
git pull --set-upstream origin {{shell(git rev-parse --abbrev-ref HEAD)}} '''
]
[[match_err]]
@ -105,6 +102,5 @@ pattern = [
suggest = [
'''
#[cmd_contains(branch)]
git checkout {{command[2]}}
'''
git checkout {{command[2]}} '''
]