dotfiles/.config/just/justfile

22 lines
423 B
Makefile

default:
@just -g --list
# confirm the recipe pwd
pwd:
pwd
# commit all? extra-opts?
commit arg="" extra="":
#!/bin/fish
if test "{{ arg }}" = 'all'
git add .
git commit {{ extra }}
else if test "{{ arg }}" = ""
git commit -a $extra
else
echo '{{ arg }} is not a valid argument!'
end
# commit all? --amend
amend arg="":
@just -g commit {{ arg }} "--amend"