Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (15 sloc) 0.382 kB
from cmd import Cmd
import logging
import sys
LOG = logging.getLogger(__name__)
class MyCmd(Cmd):
def do_EOF(self, line):
LOG.warning("Exiting")
sys.exit(0)
def do_hello(self, line):
logging.getLogger('internal.logger').debug('bla')
LOG.info("Hello")
do_exit = do_EOF
if __name__ == '__main__':
app = MyCmd()
app.cmdloop()
Jump to Line
Something went wrong with that request. Please try again.