vcd-cli icon indicating copy to clipboard operation
vcd-cli copied to clipboard

Add UI extensions commands

Open nvladimirovi opened this issue 6 years ago • 2 comments

Following commads are added: generate, list, deploy, delete. They will help the user to manage his ui extensions.

CLI Spinner class is implemented to indicate the action of the user.

Extension generator is class which inherits generator abstract class and give the ability to copy existing template from the file system, of the user, and populate it with the data, given by the user.

Prompt and PromptLauncher classes are build on top of python click lib to give the ability to validate and collect the data from the user. Signed-off-by: Nikola Vladimirov Iliev [email protected]

To help us process your pull request efficiently, please include:

  • (Required) Short description of changes in the PR topic line

  • (Required) Detailed description of changes include tests and documentation. If the pull request contains multiple commits with detailed messages, refer to those instead

  • (Optional) Names of reviewers using @ sign + name

nvladimirovi avatar Sep 19 '18 08:09 nvladimirovi

vcd-cli project is not the right place to craft REST requests or write business logic, pyvcloud is the right place to craft REST reuqest and process the responses. I think this PR needs to be split into two PRs one on pyvcloud dealing with REST + business logic and another one in this project dealing with just the cli aspect of the commands.

rocknes avatar Sep 19 '18 17:09 rocknes

Thank you for your comment, I moved the UiPlugin class to pyvcloud project, but ExtGenerator class has to stay in vcd-cli because this class depends on other classes, which are related to the CLI functionality.

nvladimirovi avatar Sep 20 '18 11:09 nvladimirovi