cliplugin
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main
.gitignore
pom.xml
readme.md

readme.md

Hello World plugin example for the cliforce shell

    git clone git://github.com/sclasen/cliforce.git
    cd cliforce
    mvn install
    cd ..
    git clone git://github.com/sclasen/cliplugin.git
    cd cliplugin
    mvn install

then run the shell and

    force> plugin HelloWorld cliplugin:cliplugin:1.0

You have installed the plugin, you can now

    force> hello

and get a hello back

You can uninstall the plugin like this

    force> unplug HelloWorld

Here is the output you should see

    force> plugin HelloWorldPlugin cliplugin:cliplugin:1.0
    Adding Plugin: HelloWorld, (HelloWorldPlugin)
      -> adds command hello, (HelloWorldPlugin$HelloWorldCommand)
    force> hello
    hello
    Hello World
    force> unplug HelloWorld
    unplug HelloWorld
    attempting to remove plugin: HelloWorld
    removed command: hello

    Done
    force>