File: hello_plugin.py

package info (click to toggle)
python-cliapp 1.20140719-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 376 kB
  • ctags: 546
  • sloc: python: 2,804; makefile: 86
file content (15 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import cliapp

class Hello(cliapp.Plugin):

    def __init__(self, foo, bar=None):
        self.foo = foo
        self.bar = bar

    @property
    def version(self):
        return '0.0.1'

    def setup(self):
        self.setup_called = True