Introduce cliff as a cli framework for python-barbicanclient, and, as a result promote usage of common OpenStack libraries.
Currently the Barbican cli utilities (such as the migration script and even the python-barbicanclient itself) rely on the argparse library, yet, their current implementations do not provide sufficient information for their usage in production. Usage of “standard” libraries should be encouraged in order to make Barbican’s integration easier. On the other hand, subcommand help is lacking, and input is not properly validated.
The proposal is to take into use cliff, which is a framework for building command line programs introduced by Oslo. This will enable Barbican’s scripts to have more standard outputs (akin to other OpenStack projects) and while moving the code to the new framework, better documentation will be added to the commands as part of the work.
The argparse library could still be used, yet, more input validation and documentation needs to be added.
None for the Barbican server. Barbican client input though should be properly validated as part of the work.
This will hopefully have a positive impact in the client’s usability, as the main focus of this work is to make it better.
This change takes immediate effect after it’s merged, and adds a dependency (which is cliff) to the python-barbicanclient.
If other developers are working with the client, it might affect their work, since the changes are potentially big.
Unit tests are assumed.