mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 23:00:18 +00:00
better import examples
This commit is contained in:
@@ -27,6 +27,8 @@ Example
|
||||
|
||||
I want to indent my console text. ::
|
||||
|
||||
>>> from clint.textui import puts, indent
|
||||
|
||||
>>> puts('not indented text')
|
||||
>>> with indent(4):
|
||||
>>> puts('indented text')
|
||||
@@ -45,6 +47,8 @@ I want to quote my console text (like email). ::
|
||||
|
||||
I want to color my console text. ::
|
||||
|
||||
>>> from clint.textui import colored
|
||||
|
||||
>>> puts(colored.red('red text'))
|
||||
red text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user