Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

cliplugin

tree: 005b578740

Fetching latest commit…

Cannot retrieve the latest commit at this time

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>
Something went wrong with that request. Please try again.