feat: in-line shell evaluation

This commit is contained in:
iff 2023-08-04 00:52:49 +02:00
parent 8ae71443d6
commit b5f2f139e4
4 changed files with 19 additions and 3 deletions

View file

@ -75,3 +75,14 @@ suggest = [
git checkout {{typo[2]({{shell(git branch)}})}}
'''
]
[[match_err]]
pattern = [
"current branch test has no upstream branch"
]
suggest = [
'''
#[cmd_contains(push)]
git push --set-upstream origin {{shell(git rev-parse --abbrev-ref HEAD)}}
'''
]