Revision 78496d42 kamaki/cli/commands/test_cli.py

b/kamaki/cli/commands/test_cli.py
31 31
# interpreted as representing official policies, either expressed
32 32
# or implied, of GRNET S.A.command
33 33

  
34
from kamaki.cli import command
34
#from kamaki.cli import command
35 35
from kamaki.cli.commands import _command_init
36 36
from kamaki.cli.command_tree import CommandTree
37 37

  
38 38

  
39
API_DESCRIPTION = dict(test='Test sample')
39
#API_DESCRIPTION = dict(test='Test sample')
40 40

  
41
_commands = CommandTree('test', 'Test sample')
41
_commands = [
42
    CommandTree('sample', 'Sample commands for developing your own'),
43
    CommandTree('test', 'Test commands for testing clients')
44
]
42 45

  
43 46

  
44 47
class _test_init(_command_init):
......
46 49
        print(self.__class__)
47 50

  
48 51

  
49
@command()
52
#@command()
53
class sample_cmd0(_test_init):
54
    """ test cmd"""
55

  
56
    def main(self, mant):
57
        super(self.__class__, self).main()
58

  
59

  
60
#@command()
61
class sample_cmd_all(_test_init):
62
    """test cmd all"""
63

  
64
    def main(self):
65
        super(self.__class__, self).main()
66

  
67

  
68
#@command()
69
class sample_cmd_some(_test_init):
70
    """test_cmd_some"""
71

  
72
    def main(self, opt='lala'):
73
        super(self.__class__, self).main()
74

  
75

  
50 76
class test_cmd0(_test_init):
51 77
    """ test cmd"""
52 78

  
53 79
    def main(self, mant):
54 80
        super(self.__class__, self).main()
55 81

  
56
@command()
82

  
57 83
class test_cmd_all(_test_init):
58 84
    """test cmd all"""
59 85

  
60 86
    def main(self):
61 87
        super(self.__class__, self).main()
62 88

  
63
@command()
89

  
64 90
class test_cmd_some(_test_init):
65 91
    """test_cmd_some"""
66 92

  

Also available in: Unified diff