The release of OCLI version 10.2.2 has made available two additional formats for model commands: YAML and JSON: ● The YAML format is very easy to write and read, which makes it more accessible and less error prone. ● The JSON format is designed to simplify parsing and it is compatible with Java script. One of the OCLI's features is its ability to easily use and display different object formats with simple commands.
It is now possible to extract the Job in YAML format with these commands: 1)ocli context set format=yaml 2)ocli model extract /tmp/job.yaml from job=/WORKSTATION-NAME#/OCLI_FOLDER/JOB-NAME_OCLI Where “1)” set the YAML format as default and “2)” is the extract command. Finally, this is our Job in YAML format: If a YAML file were to be modified on GitHub, the edited file could be imported through OCLI. For example, if our YAML job definition was modified from “User” to “User2”, the following command can be used to import the updated job definition: ocli model add /tmp/job.yaml With the latest OCLI version 10.2.3, the context command can be used on even more object types.
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
Archives
October 2024
Categories
All
|