diff options
author | 2019-08-02 13:47:12 +0530 | |
---|---|---|
committer | 2019-08-05 19:46:43 +0530 | |
commit | ab20aed26e0cb5d1647b671b96637736c2510825 (patch) | |
tree | 37e8db434c230bd6b9c288a70f9490fc336d585c /products/sample/src/main/resources/open-cli-schema/hello-world-command.yaml | |
parent | b59830d629896a4b9559a6ff01eb0b51bd721377 (diff) |
Update the sample command OCS YAML
Issue-ID: CLI-169
Change-Id: Ia797550dc327ddc63f72350c80cd807c181b58d1
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/sample/src/main/resources/open-cli-schema/hello-world-command.yaml')
-rw-r--r-- | products/sample/src/main/resources/open-cli-schema/hello-world-command.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
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 |