diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2015-05-06 10:17:30 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2015-05-06 10:17:56 -0400 |
commit | ca2e90a94031fdbba31bf4bda87b51a87e97eb7c (patch) | |
tree | fb7475ce51ddc4d8807900553d52eff682fe4f9e /demoapp/cliffdemo/simple.py | |
parent | 79a8791e7fefdcbe62f264bf905ac09a1958e753 (diff) | |
download | cliff-master.tar.gz |
Diffstat (limited to 'demoapp/cliffdemo/simple.py')
-rw-r--r-- | demoapp/cliffdemo/simple.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/demoapp/cliffdemo/simple.py b/demoapp/cliffdemo/simple.py deleted file mode 100644 index 3800514..0000000 --- a/demoapp/cliffdemo/simple.py +++ /dev/null @@ -1,24 +0,0 @@ -import logging - -from cliff.command import Command - - -class Simple(Command): - "A simple command that prints a message." - - log = logging.getLogger(__name__) - - def take_action(self, parsed_args): - self.log.info('sending greeting') - self.log.debug('debugging') - self.app.stdout.write('hi!\n') - - -class Error(Command): - "Always raises an error" - - log = logging.getLogger(__name__) - - def take_action(self, parsed_args): - self.log.info('causing error') - raise RuntimeError('this is the expected exception') |