cloudmesh / client

Deprecated: Version 3 of cloudmesh is a light weight cloud client to manage virtual clusters
http://cloudmesh.github.io/client
Other
3 stars 12 forks source link

cm: load command #183

Open laszewsk opened 8 years ago

laszewsk commented 8 years ago

in cloudmesh_client.shell.plugins.LoadCommand we propose to implement a load plugin command that can load dynamically plugins into cm at runtime.

Goals:

Draft yaml

 cloudmesh:
       modules: 
       - cloudmesh_workflow.plugins.WorkflowCommand

Draft Manual

        Usage:
            load list [--format=FORMAT]
            load reset
            load --base=MODULE PLUGINS...
            load --delete --base=MODULE PLUGINS...

            loads a plugins into the cloudmesh command shell

        OPTIONS:
            --base=MODULE  the prefix of the modules [default: cloudmesh_client.shell.plugins]
            --format=FORMAT  the output format

        ARGUMENTS:
           PLUGINS        the list of plugins to be loaded

        Examples:
            cm load list
                lists the plugins currently loaded

            cm load reset
                unloads all plugins that are not part of the standard plugin
                load list

            cm load load workflow graphviz
                loads the modules workflow and graphviz
                the plugins are classes defined with

                    class CheckCommand(PluginCommand, CloudPluginCommand)

                If they are located in a different moduel, the module name can either be
                specified as part of the PLUGIN anem, or if
                 multiple modules are loaded as part of the MODULE parameter

            cm load list --format=csv
                list sthe loaded plugins in csv format

            cm load --delete load workflow graphviz
                the oposite of load
badmutex commented 8 years ago

Related work: