| •1 |
|
| 2 |
|
| 3 |
__author__ = "b" |
| 4 |
__copyright__ = "q" |
| 5 |
__credits__ = ["b", "1", "2", "3"] |
| 6 |
__license__ = "c" |
| 7 |
__version__ = "123" |
| 8 |
__maintainer__ = "b" |
| 9 |
__email__ = "a" |
| 10 |
|
| 11 |
from __future__ import division |
| 12 |
from pyqi.core.command import Command, Parameter |
| 13 |
class foo(Command): |
| 14 |
BriefDescription = "FILL IN A 1 SENTENCE DESCRIPTION" |
| 15 |
LongDescription = "GO INTO MORE DETAIL" |
| 16 |
Parameters = ParameterCollection([ |
| 17 |
Parameter(Name='foo',Required=True,DataType=str, |
| 18 |
Help='some required parameter'), |
| 19 |
Parameter(Name='bar',Required=False,DataType=int, |
| 20 |
Help='some optional parameter',Default=1) |
| 21 |
]) |
| 22 |
|
| 23 |
def run(self, **kwargs): |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
raise NotImplementedError("You must define this method") |
| 28 |
|
| 29 |
CommandConstructor = foo |