summaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-06 23:26:20 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-20 12:42:00 +0530
commit7259212791972fc10e41210487ff0f780ab024a6 (patch)
tree7d324b6eeee6ccd8cc367d88532e60b7953d636d /main/src
parent1845026e0f1ef61d64faf5ddab197f1bfc3a4f42 (diff)
Onap to Oclip text migration
Issue-Id: CLI-66 Change-Id: I58e98952c61902e34585e9defabc36d1233a99a4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/org/onap/cli/main/OnapCli.java4
-rw-r--r--main/src/main/java/org/onap/cli/main/utils/OnapCliUtils.java4
-rw-r--r--main/src/main/resources/onap-readme.txt6
-rw-r--r--main/src/test/resources/open-cli-schema/sample-create-schema.yaml18
-rw-r--r--main/src/test/resources/sample-test-schema.yaml26
5 files changed, 29 insertions, 29 deletions
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 eb4e1d40..357ee5e2 100644
--- a/main/src/main/java/org/onap/cli/main/OnapCli.java
+++ b/main/src/main/java/org/onap/cli/main/OnapCli.java
@@ -47,7 +47,7 @@ import jline.TerminalFactory;
import jline.console.ConsoleReader;
/**
- * Onap Command Line Interface (CLI).
+ * Oclip Command Line Interface (CLI).
*
*/
public class OnapCli {
@@ -309,7 +309,7 @@ public class OnapCli {
console.addCompleter(strCompleter);
console.setPrompt(OnapCliConstants.PARAM_INTERACTIVE_PROMPT + ":" + OnapCommandRegistrar.getRegistrar().getEnabledProductVersion() + ">");
} catch (OnapCommandException e) { // NOSONAR
- this.print("Failed to load onap commands," + e.getMessage());
+ this.print("Failed to load oclip commands," + e.getMessage());
}
return console;
diff --git a/main/src/main/java/org/onap/cli/main/utils/OnapCliUtils.java b/main/src/main/java/org/onap/cli/main/utils/OnapCliUtils.java
index 3ab4cceb..99cfa7dd 100644
--- a/main/src/main/java/org/onap/cli/main/utils/OnapCliUtils.java
+++ b/main/src/main/java/org/onap/cli/main/utils/OnapCliUtils.java
@@ -38,7 +38,7 @@ import java.util.List;
import java.util.Map;
/**
- * Onap CLI utilities.
+ * Oclip CLI utilities.
*
*/
public class OnapCliUtils {
@@ -91,7 +91,7 @@ public class OnapCliUtils {
}
int positionalIdx = 0;
- // Skip the first args onap cmd name, so start from 1
+ // Skip the first args oclip cmd name, so start from 1
for (int i = 1; i < args.size(); i++) {
// check if short option exist
// (mrkanag) Optimize the below code to handle short and long options in one iteration
diff --git a/main/src/main/resources/onap-readme.txt b/main/src/main/resources/onap-readme.txt
index ab4086b5..a2048606 100644
--- a/main/src/main/resources/onap-readme.txt
+++ b/main/src/main/resources/onap-readme.txt
@@ -18,8 +18,8 @@ variables, before using it:
2. OPEN_CLI_HOST_USERNAME - Service user name
3. OPEN_CLI_HOST_PASSWORD - Service password
-To know the CLI version, type onap [-v|--version]
-To know the CLI usage, type onap [-h|--help]
-To know the usage of sub commands, type onap <command> [-h|--help]
+To know the CLI version, type oclip [-v|--version]
+To know the CLI usage, type oclip [-h|--help]
+To know the usage of sub commands, type oclip <command> [-h|--help]
To know more, please refer the wiki https://wiki.onap.org
diff --git a/main/src/test/resources/open-cli-schema/sample-create-schema.yaml b/main/src/test/resources/open-cli-schema/sample-create-schema.yaml
index 3c1dda8d..23421b37 100644
--- a/main/src/test/resources/open-cli-schema/sample-create-schema.yaml
+++ b/main/src/test/resources/open-cli-schema/sample-create-schema.yaml
@@ -9,18 +9,18 @@ info:
parameters:
- name: service-name
- description: Onap service name
+ description: Oclip service name
type: string
short_option: x
long_option: service-name
is_optional: false
- name: node-ip
- description: Onap service running node IP
+ description: Oclip service running node IP
type: array
short_option: i
long_option: node-ip
- name: node-port
- description: Onap service running node port
+ description: Oclip service running node port
type: map
short_option: o
long_option: node-port
@@ -28,27 +28,27 @@ results:
direction: portrait
attributes:
- name: name
- description: Onap service name
+ description: Oclip service name
scope: short
type: string
- name: version
- description: Onap service version
+ description: Oclip service version
scope: short
type: string
- name: url
- description: Onap service base url
+ description: Oclip service base url
scope: short
type: url
- name: status
- description: Onap service status
+ description: Oclip service status
scope: short
type: digit
- name: nodes
- description: Onap service running nodes
+ description: Oclip service running nodes
scope: long
type: string
- name: location
- description: Onap service location
+ description: Oclip service location
scope: long
type: url
http:
diff --git a/main/src/test/resources/sample-test-schema.yaml b/main/src/test/resources/sample-test-schema.yaml
index f257bf69..d867d9f8 100644
--- a/main/src/test/resources/sample-test-schema.yaml
+++ b/main/src/test/resources/sample-test-schema.yaml
@@ -1,6 +1,6 @@
open_cli_schema_version: 1.0
name: sample-test
-description: Onap sample command to test the command features
+description: Oclip sample command to test the command features
info:
product: open-cli
service: test
@@ -10,14 +10,14 @@ info:
parameters:
- name: bool-param
type: bool
- description: Onap boolean param, by default its always false.
+ description: Oclip boolean param, by default its always false.
short_option: b
long_option: bool
is_optional: true
default_value: false
- name: secure-param
type: string
- description: Onap secure param such as password
+ description: Oclip secure param such as password
short_option: x
long_option: secure
is_secured: true
@@ -25,40 +25,40 @@ parameters:
default_Value: pass123#
- name: string-param
type: string
- description: Onap string param
+ description: Oclip string param
long_option: string-param
short_option: c
is_optional: true
default_Value: test
- name: yaml-param
type: json
- description: Onap yaml file location param
+ description: Oclip yaml file location param
long_option: yaml-param
short_option: y
is_optional: true
- name: json-param
type: json
- description: Onap json file location param
+ description: Oclip json file location param
long_option: json-param
short_option: j
is_optional: true
- name: long-param
type: digit
- description: Onap long param
+ description: Oclip long param
short_option: l
long_option: long-opt
is_optional: true
default_value: 10
- name: url-param
type: url
- description: Onap url param
+ description: Oclip url param
short_option: r
long_option: url
is_optional: true
default_value: http://localhost:8082/file.txt
- name: env-param
type: string
- description: Onap env param.
+ description: Oclip env param.
short_option: z
long_option: env
is_optional: true
@@ -66,12 +66,12 @@ parameters:
default_value: http://localhost:8082/file.txt
- name: positional-args
type: string
- description: Onap positional args, if no short option and no long option given for it
+ description: Oclip positional args, if no short option and no long option given for it
is_optional: true
default_value: http://localhost:8082/file.txt
- name: text-param
type: text
- description: Onap text file location param
+ description: Oclip text file location param
long_option: text-param
short_option: e
is_optional: true
@@ -79,10 +79,10 @@ results:
direction: portrait
attributes:
- name: output-1
- description: Onap output attribute marked in short
+ description: Oclip output attribute marked in short
scope: short
type: string
- name: output-2
- description: Onap output attribute marked in long
+ description: Oclip output attribute marked in long
scope: short
type: string \ No newline at end of file