From 51a60f14821cb3ca54848e94694b3dda045fe666 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 5 Oct 2017 20:39:30 +0530 Subject: Make oclip.sh from onap.sh Issue-Id: CLI-66 Change-Id: I88345b358c70c3f9048bea1ac7a34a5263e970c4 Signed-off-by: Kanagaraj Manickam k00365106 --- main/src/main/java/org/onap/cli/main/OnapCli.java | 2 +- main/src/main/java/org/onap/cli/main/conf/OnapCliConstants.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src') diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java index 5123a958..eb4e1d40 100644 --- a/main/src/main/java/org/onap/cli/main/OnapCli.java +++ b/main/src/main/java/org/onap/cli/main/OnapCli.java @@ -307,7 +307,7 @@ public class OnapCli { OnapCliConstants.PARAM_INTERACTIVE_UNSET, OnapCliConstants.PARAM_INTERACTIVE_PROFILE); console.addCompleter(strCompleter); - console.setPrompt(OnapCliConstants.PARAM_INTERACTIVE_PROMPT); + console.setPrompt(OnapCliConstants.PARAM_INTERACTIVE_PROMPT + ":" + OnapCommandRegistrar.getRegistrar().getEnabledProductVersion() + ">"); } catch (OnapCommandException e) { // NOSONAR this.print("Failed to load onap commands," + e.getMessage()); } diff --git a/main/src/main/java/org/onap/cli/main/conf/OnapCliConstants.java b/main/src/main/java/org/onap/cli/main/conf/OnapCliConstants.java index d28b9849..c4a21614 100644 --- a/main/src/main/java/org/onap/cli/main/conf/OnapCliConstants.java +++ b/main/src/main/java/org/onap/cli/main/conf/OnapCliConstants.java @@ -30,7 +30,7 @@ public final class OnapCliConstants { public static final int EXIT_SUCCESS = 0; public static final int EXIT_FAILURE = 1; - public static final String PARAM_INTERACTIVE_PROMPT = "onap>"; + public static final String PARAM_INTERACTIVE_PROMPT = "oclip"; public static final String PARAM_INTERACTIVE_EXIT = "exit"; public static final String PARAM_INTERACTIVE_EXIT_MSG = "To exit from the session."; public static final String PARAM_INTERACTIVE_CLEAR = "clear"; -- cgit 1.2.3-korg