aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures
diff options
context:
space:
mode:
authorRoy Sommer <royso@wix.com>2020-01-02 19:12:08 +0200
committerRoy Sommer <royso@wix.com>2020-01-02 19:12:08 +0200
commitb7c1dc794d4e4faa068594139e945fbeac7b02b5 (patch)
treec63f4ee8a615bafbb735820388993cfa4635159d /tests/fixtures
parentupdated pytoml (diff)
downloadtaskipy2-b7c1dc794d4e4faa068594139e945fbeac7b02b5.zip
added support for passing arguments into taskipy tasks
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/project_with_tasks_that_accept_arguments/count.sh1
-rw-r--r--tests/fixtures/project_with_tasks_that_accept_arguments/pyproject.toml14
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/fixtures/project_with_tasks_that_accept_arguments/count.sh b/tests/fixtures/project_with_tasks_that_accept_arguments/count.sh
new file mode 100644
index 0000000..17153d5
--- /dev/null
+++ b/tests/fixtures/project_with_tasks_that_accept_arguments/count.sh
@@ -0,0 +1 @@
+echo the argument count is $# \ No newline at end of file
diff --git a/tests/fixtures/project_with_tasks_that_accept_arguments/pyproject.toml b/tests/fixtures/project_with_tasks_that_accept_arguments/pyproject.toml
new file mode 100644
index 0000000..1459281
--- /dev/null
+++ b/tests/fixtures/project_with_tasks_that_accept_arguments/pyproject.toml
@@ -0,0 +1,14 @@
+[tool.poetry]
+name = "taskipy"
+description = "tasks runner for python projects"
+
+[tool.taskipy.tasks]
+echo_number = "echo the number is "
+echo_named = "echo got a named argument "
+echo_args_count = "bash count.sh"
+
+pre_echo_on_prehook = "echo the number in prehook is "
+echo_on_prehook = "echo ok"
+
+echo_on_posthook = "echo ok"
+post_echo_on_posthook = "echo the number in posthook is "