Skip to content

Start and Stop command using cobra cli#109

Closed
Luxxgit2k4 wants to merge 3 commits intomicrocks:masterfrom
Luxxgit2k4:feature/start-stop
Closed

Start and Stop command using cobra cli#109
Luxxgit2k4 wants to merge 3 commits intomicrocks:masterfrom
Luxxgit2k4:feature/start-stop

Conversation

@Luxxgit2k4
Copy link
Copy Markdown

@Luxxgit2k4 Luxxgit2k4 commented Feb 16, 2025

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.

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>
@github-actions
Copy link
Copy Markdown

👋 @Luxxgit2k4

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.

@Harsh4902
Copy link
Copy Markdown
Member

@Luxxgit2k4 Thank you for this PR. Adaption of cobra for our CLI is completed. I am happy to here from you regarding start and stop commands.

@github-actions
Copy link
Copy Markdown

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 ❤️

@github-actions github-actions bot added the stale State due to inactivity label Apr 14, 2025
@lbroudoux
Copy link
Copy Markdown
Member

Now done in 1.x branch.

@lbroudoux lbroudoux closed this Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale State due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants