aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures
diff options
context:
space:
mode:
authorRoy Sommer <illBeRoy@users.noreply.github.com>2020-01-02 19:25:03 +0200
committerGitHub <noreply@github.com>2020-01-02 19:25:03 +0200
commit81b17bde80cff6765f9c419965ea93d80814614f (patch)
treec63f4ee8a615bafbb735820388993cfa4635159d /tests/fixtures
parentupdated pytoml (diff)
parentadded support for passing arguments into taskipy tasks (diff)
downloadtaskipy2-81b17bde80cff6765f9c419965ea93d80814614f.zip
Merge pull request #2 from illBeRoy/pass-arguments-to-task
Support Passing Command Line Arguments Into 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 "