From 976911081db0dbc3d42ec7c182aa8d8c6cc406c0 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 26 May 2011 11:32:39 +0000 Subject: Start some clean up of the Shell commands to match what the runtime is doing git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1127875 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/shell/Shell.java | 25 ++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'sca-java-2.x/trunk/modules/shell') diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java index cec7194129..5ca4272762 100644 --- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java +++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java @@ -72,7 +72,7 @@ public class Shell { private Map standaloneNodes = new HashMap(); private Map nodes = new HashMap(); - public static final String[] COMMANDS = new String[] {"bye", "addComposite", "domain", "domains", "domainComposite", "help", "install", "installed", "invoke", + public static final String[] COMMANDS = new String[] {"addComposite", "bye", "domain", "domains", "domainComposite", "help", "install", "installed", "invoke", "load", "members", "remove", "run", "save", "services", "start", "started", "stop"}; public static void main(final String[] args) throws Exception { @@ -768,6 +768,8 @@ public class Shell { helpOverview(); } else if ("help".equalsIgnoreCase(command)) { helpHelp(); + } else if ("addComposite".equalsIgnoreCase(command)) { + helpAddComposite(); } else if ("install".equalsIgnoreCase(command)) { helpInstall(); } else if ("installed".equalsIgnoreCase(command)) { @@ -805,21 +807,22 @@ public class Shell { out.println("Commands:"); out.println(); out.println(" help"); + out.println(" addComposite "); out.println(" domains"); - out.println(" install [] [-start] [-metadata ] [-duris ]"); + out.println(" install [] [-metadata ] [-duris ]"); out.println(" installed []"); out.println(" invoke [/] [ ...]"); out.println(" load "); + out.println(" members"); out.println(" remove "); out.println(" run "); out.println(" save "); out.println(" services"); - out.println(" start |"); - out.println(" start [] [-duris ]"); - out.println(" started [ []]"); + out.println(" start []"); + out.println(" started"); out.println(" status"); - out.println(" stop [ []]"); + out.println(" stop "); out.println(" bye"); out.println(); if (useJline) @@ -828,6 +831,16 @@ public class Shell { return true; } + void helpAddComposite() { + out.println(" addComposite ]"); out.println(); -- cgit v1.2.3