Skip to content
Snippets Groups Projects
Commit 98a60864 authored by Seblu's avatar Seblu
Browse files

Improve commands loading

Commands loading is now done by crawling commands directory under cccli module.
All command which starts by Commmand_ and which is a son of Command class are candidate.
parent a98db606
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ CloudControl VM related commands ...@@ -6,7 +6,7 @@ CloudControl VM related commands
from cccli.exception import * from cccli.exception import *
from sjrpc.core.exceptions import * from sjrpc.core.exceptions import *
from cccli.printer import Printer, color from cccli.printer import Printer, color
from cccli.command.command import TqlCommand from cccli.command import TqlCommand
class Command_start(TqlCommand): class Command_start(TqlCommand):
'''Start a stopped vm''' '''Start a stopped vm'''
......
...@@ -11,8 +11,8 @@ setup( ...@@ -11,8 +11,8 @@ setup(
long_description=ldesc, long_description=ldesc,
author='Sebastien Luttringer', author='Sebastien Luttringer',
author_email='sebastien.luttringer@smartjog.com', author_email='sebastien.luttringer@smartjog.com',
license='GPL2', license='GPL2',
packages=['cccli', 'cccli.command'], packages=['cccli', 'cccli.commands'],
scripts=['bin/cc-cli'], scripts=['bin/cc-cli'],
classifiers=[ classifiers=[
'Operating System :: Unix', 'Operating System :: Unix',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment