{"repo":"python-poetry/cleo","free":true,"listed":false,"github":"https://github.com/python-poetry/cleo","clone":"git clone https://github.com/python-poetry/cleo.git","description":"Cleo allows you to create beautiful and testable command-line interfaces.","language":"Python","stars":1353,"topics":["python","cli","command-line"],"license":"MIT","category":"cli-tools","readme_excerpt":"Cleo [!CAUTION] Cleo is currently being rewritten for version 3.0. While contributions are appreciated, please consult the writeup issue and our Discord channel (link below) before submitting a PR. Create beautiful and testable command-line interfaces. Resources - Documentation - Issue Tracker - Discord ( #cleo ) Usage To make a command that greets you from the command line, create greet command.py and add the following to it: You also need to create the file application.py to run at the command line which creates an Application and adds commands to it: Test the new command by running the following This will print the following to the command line: You can also use the --yell option to make everything uppercase: This prints: Coloring the Output Whenever you output text, you can surround the text with tags to color its output. For example: The closing tag can be replaced by , which revokes all formatting options established by the last opened tag. It is possible to define your own styles using the add style() method: Available foreground and background colors are: black , red , green , yellow , blue , magenta , cyan and white . And available options are: bold , underscore , blink , reverse and conceal . You can also set these colors and options inside the tag name: Verbosity Levels Cleo has four verbosity levels. These are defined in the Output class: Mode Meaning Console option ------------------------ ---------------------------------- ----------------- Verbosity.QUIET Do no","default_branch":null,"files":null,"tree":[],"storefront":"/r/python-poetry","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/python-poetry/cleo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}