File: echo.py

package info (click to toggle)
mando 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: python: 1,677; makefile: 191; sh: 2
file content (12 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
from mando import command, main

@command
def echo(text, capitalize=False):
    '''Echo the given text.'''
    if capitalize:
        text = text.upper()
    print text


if __name__ == '__main__':
    main()