diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2017-11-03 12:51:40 +0000 |
---|---|---|
committer | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2017-11-06 06:20:05 +0000 |
commit | 49be0d781e3125da4343ad1c14e964bcc111d373 (patch) | |
tree | a0dcc0c48297550bc3fac9ba1c3b2dff854f0658 /validate | |
parent | 99c106f1ace0c6019d0a8b1deceaf1b6e1fbe476 (diff) |
Add samples for commands
- Add samples for command
- Fix typo (change from "ouput" to "output") in sample files.
Change-Id: Ifa5c1a302df5be07c28c7e97602ec22844ce1aea
Issue-ID: CLI-55
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'validate')
-rw-r--r-- | validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java b/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java index 5da8ce22..d45b50a4 100644 --- a/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java +++ b/validate/sample-yaml-generator/src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java @@ -27,7 +27,7 @@ public class SampleYamlGenerator { static int nTab; - public static void generateSampleYaml(List<String> input, String ouput, String version, + public static void generateSampleYaml(List<String> input, String output, String version, String targetPath, boolean debug) throws IOException { String cmdName = input.get(0); @@ -43,7 +43,7 @@ public class SampleYamlGenerator { writeKeyValuePair(writer, "name", cmdName); writeKeyValuePair(writer, "input", input.stream().skip(1).collect(Collectors.joining(" ")).trim()); writeKeyValuePair(writer, "moco", new File(targetPath).getName().replaceAll("-sample.yaml", "-moco.json")); - writeMultilineKeyValue(writer, "ouput", ouput.trim(), debug); + writeMultilineKeyValue(writer, "output", output.trim(), debug); writeEndKey(); writeEndKey(); |