From 49be0d781e3125da4343ad1c14e964bcc111d373 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Fri, 3 Nov 2017 12:51:40 +0000 Subject: 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 --- .../src/main/java/org/onap/cli/sample/yaml/SampleYamlGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'validate') 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 input, String ouput, String version, + public static void generateSampleYaml(List 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(); -- cgit 1.2.3-korg