summaryrefslogtreecommitdiffstats
path: root/mise.toml
diff options
context:
space:
mode:
Diffstat (limited to 'mise.toml')
-rw-r--r--mise.toml10
1 files changed, 9 insertions, 1 deletions
diff --git a/mise.toml b/mise.toml
index 9358152..0854dbd 100644
--- a/mise.toml
+++ b/mise.toml
@@ -9,4 +9,12 @@ run = "pip install -r requirements.txt"
[tasks.run]
description = "Run g2h with the test repo"
alias = "r"
-run = "python3 -m g2h.cli"
+run = "rm -rf ./test_out && python3 -m g2h.cli test_repo test_out"
+
+[tasks.commit]
+run = [
+ 'tar czf test_repo/git.tgz -C test_repo .git*',
+ 'rm -rf test_repo/.git*',
+ './.mise-tasks/co.sh {{arg(name="commit args", var=true)}}',
+ 'tar xzf test_repo/git.tgz -C test_repo'
+]