#Setup the run time environment (RTE)
#RTE: CLI
-RUN chmod +x ./bin/onap.sh && \
- ln ./bin/onap.sh /usr/sbin/onap && \
+RUN chmod +x ./bin/oclip.sh && \
+ ln ./bin/oclip.sh /usr/sbin/onap && \
if [ ! -d ./data ]; then mkdir ./data; fi && \
if [ ! -d ./onap-cli-schema ]; then mkdir ./onap-cli-schema; fi
unzip $CLI_ZIP
if [ ! -d ./data ]; then mkdir ./data; fi
if [ ! -d ./open-cli-schema ]; then mkdir ./open-cli-schema; fi
-chmod +x ./bin/onap.sh
+chmod +x ./bin/oclip.sh
#Make onap available in path
-ln ./bin/onap.sh $CLI_BIN
+ln ./bin/oclip.sh $CLI_BIN
#Print the version
onap -v
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());
}
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";