Commit graph

29 commits

Author SHA1 Message Date
Sebastián Ramírez
48698ff2ad
📝 Add docs for using Click with Typer (#70)
* 📝 Add docs for using Click with Typer

*  Add tests for integrating Click and Typer
2020-03-19 10:30:42 +01:00
Sebastián Ramírez
c304d80dea
🐛 Fix Zsh completion install (#69) 2020-03-18 21:28:34 +01:00
Sebastián Ramírez
5a6379ffc6
Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)
*  Implement custom handling for callbacks with types

*  Implement type-based handling for completion functions

*  Add examples for custom completion

* 📝 Add docs for custom autocompletion

*  Add tests for autocompletion

*  Document using the context

*  Add tests for using the context

*  Add tests init for context

* 🔧 Update Mypy config

*  Add extra tests for completion

* ✏️ Fix format, typos, and minor texts

*  Update docs for printing, include stdout, stderr, and stdin

* ✏️ Add references to FastAPI, fix typos

* ✏️ Fix typo in Typer CLI

* 📝 Update docs for version

* 📝 Update docs for callbacks

* 📝 Update references to stdout/stderr in autocompletion

* 📝 Add docs for password in CLI option

* 📝 Add docs and tests for Testing

* 📝 Add new sections to docs

* 🎨 Fix formatting
2020-03-18 21:17:47 +01:00
Sebastián Ramírez
1d3337a4da
Re-implement completion, fixes, add PowerShell support (#66)
*  Re-implement completion

*  Add tests for re-implemented completion

* 🎨 Move mypy config to file

* 🙈 Update .gitignore

*  Remove click-completion, add support for autodetection with shellingham

*  Fix test for PowerShell

* 🐛 Fix PowerShell permissions/test

* 🎨 Format test

* 🏁 Fix PowerShell script for Windows and PowerShell 5

* 📝 Update docs, internal implementation of completion
2020-03-16 13:21:58 +01:00
Sebastián Ramírez
96b29e9639
Add support for Click 7.1.1 (#60)
* ⬆️ Upgrade required Click to 7.1.1 and pin it to patch versions

as a MINOR version broke compatibility, so I'll have to upgrade manually every time

* 📌 Fix pinning Click to MINOR version

*  Upgrade code to be compatible with latest Click changes

*  Update tests with new format for errors

* 📝 Update docs to keep them in sync with actual output
2020-03-10 18:49:29 +01:00
Sebastián Ramírez
222765eacf Fix tests using binary config files 2020-01-18 19:50:57 +01:00
Sebastián Ramírez
3efee0a551 Add 4 extra tests for edge cases 2020-01-05 22:20:54 +01:00
Sebastián Ramírez
724c4bc8b6 Add tests for examples with multiple values 2020-01-05 22:10:54 +01:00
Sebastián Ramírez
be75c9c3a3 Add tests for extra param types, bool, number 2020-01-05 21:53:57 +01:00
Sebastián Ramírez
d0ee82ba82 Add tests for commands: callbacks 2020-01-05 21:38:57 +01:00
Sebastián Ramírez
44319119e9 Add tests for subcommands examples 2020-01-05 20:49:29 +01:00
Sebastián Ramírez
f3c97dc283 Add tests for subcommands 2020-01-04 02:39:55 +01:00
Sebastián Ramírez
e9afd24958 🐛 Fix overwritten test function 2020-01-02 18:17:43 +01:00
Sebastián Ramírez
7673cab540 Add tests for prompts 2020-01-02 16:59:26 +01:00
Sebastián Ramírez
ff8a1e4c27 📝 Update path docs 2020-01-02 16:28:35 +01:00
Sebastián Ramírez
9abba68f0b Add tests for printing and terminating 2020-01-02 15:22:39 +01:00
Sebastián Ramírez
d8a5236c08 ♻️ Refactor docs structure and add CLI option names 2020-01-02 12:49:28 +01:00
Sebastián Ramírez
73f047ad39 Add tests for CLI parameter types 2019-12-31 22:16:44 +01:00
Sebastián Ramírez
f9d7f69d7e Update completion tests, checking for printed message 2019-12-31 11:25:48 +01:00
Sebastián Ramírez
cde63b0760 🐛 Fix test completion, check for bash completion file before running 2019-12-31 11:19:07 +01:00
Sebastián Ramírez
7b369b79f2 Add tests for completion 2019-12-31 11:13:38 +01:00
Sebastián Ramírez
6e7d6df51c Add tests for Commands 2019-12-30 14:25:13 +01:00
Sebastián Ramírez
3332ab3cae Add tests for CLI arguments 2019-12-29 17:09:56 +01:00
Sebastián Ramírez
8596200b7c Add tests for examples in CLI Options 2019-12-29 10:24:31 +01:00
Sebastián Ramírez
f00e10083c Fix test coverage handling 2019-12-28 14:44:08 +01:00
Sebastián Ramírez
e02475a784 Add tests for tutorial006 in First Steps, to test help from docstring 2019-12-28 14:25:32 +01:00
Sebastián Ramírez
45f995c6aa Add tests for the first steps 2019-12-28 13:57:56 +01:00
Sebastián Ramírez
b52fc16bba 🎨 Fix types and format 2019-12-24 17:16:58 +01:00
Sebastián Ramírez
a3d337f98b Add first test, scaffold testing 2019-12-24 15:35:53 +01:00