Cumulus4j API
(1.2.0-SNAPSHOT)

org.cumulus4j.keymanager.cli
Class VersionSubCommand

java.lang.Object
  extended by org.cumulus4j.keymanager.cli.SubCommand
      extended by org.cumulus4j.keymanager.cli.VersionSubCommand

public class VersionSubCommand
extends SubCommand

SubCommand implementation for showing the version number of the command line tool.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Constructor Summary
VersionSubCommand()
           
 
Method Summary
 String getSubCommandDescription()
          Get the description for this sub-command.
 String getSubCommandName()
          Get the name of the sub-command, i.e.
static String getVersion()
           
 void run()
           
 
Methods inherited from class org.cumulus4j.keymanager.cli.SubCommand
prepare, promptPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionSubCommand

public VersionSubCommand()
Method Detail

getVersion

public static String getVersion()
                         throws IOException
Throws:
IOException

getSubCommandName

public String getSubCommandName()
Description copied from class: SubCommand
Get the name of the sub-command, i.e. what the user has to write in the command line.

Specified by:
getSubCommandName in class SubCommand
Returns:
the name of the sub-command.

getSubCommandDescription

public String getSubCommandDescription()
Description copied from class: SubCommand
Get the description for this sub-command.

Specified by:
getSubCommandDescription in class SubCommand
Returns:
the description.

run

public void run()
         throws Exception
Specified by:
run in class SubCommand
Throws:
Exception

Cumulus4j API
(1.2.0-SNAPSHOT)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.