Start and Stop command using cobra cli#109
Start and Stop command using cobra cli#109Luxxgit2k4 wants to merge 3 commits intomicrocks:masterfrom
Conversation
Signed-off-by: Luxxgit2k4 <lakshmanoni1234@gmail.com>
…ver. Signed-off-by: Luxxgit2k4 <lakshmanoni1234@gmail.com>
… of the existing commands Signed-off-by: Luxxgit2k4 <lakshmanoni1234@gmail.com>
|
Welcome to the Microcks community! 💖 Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly. Hope you have a great time there! 🌟 ~~~~~~~~~ 🌟 📢 If you like Microcks, please ⭐ star ⭐ our repo to support it! 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. |
|
@Luxxgit2k4 Thank you for this PR. Adaption of cobra for our CLI is completed. I am happy to here from you regarding |
|
This pull request has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
|
Now done in |
Adding the start and stop commands for microcks-cli using cobra cli. The modules have also been updated
microcks-cli start : Starts the server in the background by pulling the docker image with the container name "microcks-server"
microcks-cli stop: Stops the server.
Also updated main.go to prevent overwriting the existing commands.
Future implementation:
Adding viper for managing configuration, for example allowing the users to select the port to run the microcks server.
Migrating the other commands into cobra cli for easy management. Cobra cli generates a help page based on the commands built without even need for building the help command.