SAS Command Line Interface Code Generator
Pages : 1191-1193
Download PDF
Abstract
Command line interfaces (CLIs) provide easy to use abstraction on top of REST (Representational State Transfer) APIs (Application Programming Interfaces) and they are helpful in automation. Hence CLIs are used as interfaces for administrative work. In the latest SAS platform, a CLI framework is introduced which supports a structure of commands, subcommands, and flags. Currently, CLIs are developed manually by programmers. This requires a lot of time and cost. To ease the CLI development automation is being considered as per ‘12-factor app’ methodology which says, ‘use declarative formats setup automation, to minimize time and cost for new developers joining the project’. This work involves developing a tool to generate CLI code. CLIs are mainly driven by REST endpoints. The Input will be swagger file which contains API specification and CLI code will be generated as output. One CLI command will be generated for each REST endpoint. This tool can be helpful to CLI developers for quick start with generation of boilerplate code. As most of the code will be generated automatically, efforts required for CLI development will be reduced, thus saving the involved time and cost. This tool will also help to maintain the consistency in CLI code for different services.
Keywords: Code Generators, Command line Interfaces, Representational State Transfer (REST)