From ab20aed26e0cb5d1647b671b96637736c2510825 Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Fri, 2 Aug 2019 13:47:12 +0530 Subject: Update the sample command OCS YAML Issue-ID: CLI-169 Change-Id: Ia797550dc327ddc63f72350c80cd807c181b58d1 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-schema/hello-world-command.yaml | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 products/sample/src/main/resources/open-cli-schema/hello-world-command.yaml (limited to 'products/sample/src/main/resources/open-cli-schema/hello-world-command.yaml') diff --git a/products/sample/src/main/resources/open-cli-schema/hello-world-command.yaml b/products/sample/src/main/resources/open-cli-schema/hello-world-command.yaml new file mode 100644 index 00000000..fcf44bf1 --- /dev/null +++ b/products/sample/src/main/resources/open-cli-schema/hello-world-command.yaml @@ -0,0 +1,38 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: dir +description: Oclip sample command to do dir +info: + product: tutorial + service: learning + author: Kanagaraj Manickam kanagaraj.manickam@huawei.com + +parameters: + - name: format + type: string + description: Output formats, supported formats such as table, csv, json, yaml + short_option: f + long_option: format + default_value: text + is_default_param: true + +cmd: + command: + - dir + success_codes: + - 0 + working_directory: . + output: $stdout -- cgit 1.2.3-korg