aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures
diff options
context:
space:
mode:
authorRoy Sommer <illBeRoy@users.noreply.github.com>2020-03-21 01:11:44 +0200
committerGitHub <noreply@github.com>2020-03-21 01:11:44 +0200
commitcae9e34aed733cde4cdf9d62dddfe6ee08e564c4 (patch)
treeaadcb9f0f8d9f45f7db0b134bb80d52032e14b1c /tests/fixtures
parentRelease version 1.2.0 (diff)
downloadtaskipy2-cae9e34aed733cde4cdf9d62dddfe6ee08e564c4.zip
Passed Arguments Are Escaped Properly (#12)
passed arguments are now escaped properly. can pass arguments with spaces.
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/project_with_task_that_checks_args_passed_with_spaces/identify.py8
-rw-r--r--tests/fixtures/project_with_task_that_checks_args_passed_with_spaces/pyproject.toml6
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/fixtures/project_with_task_that_checks_args_passed_with_spaces/identify.py b/tests/fixtures/project_with_task_that_checks_args_passed_with_spaces/identify.py
new file mode 100644
index 0000000..c022982
--- /dev/null
+++ b/tests/fixtures/project_with_task_that_checks_args_passed_with_spaces/identify.py
@@ -0,0 +1,8 @@
+import argparse
+
+if __name__ == '__main__':
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--full-name')
+ parser.add_argument('--age')
+ args = parser.parse_args()
+ print(f'name: {args.full_name} age: {args.age}')
diff --git a/tests/fixtures/project_with_task_that_checks_args_passed_with_spaces/pyproject.toml b/tests/fixtures/project_with_task_that_checks_args_passed_with_spaces/pyproject.toml
new file mode 100644
index 0000000..516a7cb
--- /dev/null
+++ b/tests/fixtures/project_with_task_that_checks_args_passed_with_spaces/pyproject.toml
@@ -0,0 +1,6 @@
+[tool.poetry]
+name = "taskipy"
+description = "tasks runner for python projects"
+
+[tool.taskipy.tasks]
+identify = "python identify.py"