diff options
| author | Bernardas AliĊĦauskas <bernardas.alisauskas@pm.me> | 2020-10-07 15:37:44 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-07 11:37:44 +0300 |
| commit | ff080abe550af90a8445332058434743ee7529c7 (patch) | |
| tree | 1ddc301d4751f1a52ee5dbabff5d1d27cd58ed4e /tests/fixtures | |
| parent | Release version 1.3.0 (diff) | |
| download | taskipy2-ff080abe550af90a8445332058434743ee7529c7.zip | |
add list command which lists tasks (#21)
* add list command which lists tasks
* refactor list argument as a flag
add tests and readme for --list flag
* more tests
* Update tests/test_taskipy.py
Co-authored-by: Roy Sommer <illBeRoy@users.noreply.github.com>
* refactor listing to taskrunner
fix tests and cli to handle --list following arguments cases
Co-authored-by: Roy Sommer <illBeRoy@users.noreply.github.com>
Diffstat (limited to 'tests/fixtures')
| -rw-r--r-- | tests/fixtures/project_with_tasks_to_list/poetry.lock | 8 | ||||
| -rw-r--r-- | tests/fixtures/project_with_tasks_to_list/pyproject.toml | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/fixtures/project_with_tasks_to_list/poetry.lock b/tests/fixtures/project_with_tasks_to_list/poetry.lock new file mode 100644 index 0000000..7df12a4 --- /dev/null +++ b/tests/fixtures/project_with_tasks_to_list/poetry.lock @@ -0,0 +1,8 @@ +package = [] + +[metadata] +content-hash = "115cf985d932e9bf5f540555bbdd75decbb62cac81e399375fc19f6277f8c1d8" +lock-version = "1.0" +python-versions = "*" + +[metadata.files] diff --git a/tests/fixtures/project_with_tasks_to_list/pyproject.toml b/tests/fixtures/project_with_tasks_to_list/pyproject.toml new file mode 100644 index 0000000..ff6f30a --- /dev/null +++ b/tests/fixtures/project_with_tasks_to_list/pyproject.toml @@ -0,0 +1,10 @@ +[tool.poetry] +name = "taskipy" +description = "tasks runner for python projects" +version = "1.0.0" +authors = ["foobar"] + +[tool.taskipy.tasks] +one = "echo first task" +two = "echo second task" +three = "echo third task" |