Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI commands test suite #52

Closed
vhadianto opened this issue Aug 15, 2023 · 3 comments
Closed

Add CLI commands test suite #52

vhadianto opened this issue Aug 15, 2023 · 3 comments
Assignees

Comments

@vhadianto
Copy link
Contributor

vhadianto commented Aug 15, 2023

From a brief research, there doesn't seem an idiomatic way to do this:

spf13/cobra#770

Also found these:
https://nayaktapan37.medium.com/testing-cobra-commands-in-golang-ca1fe4ad6657
https://gianarb.it/blog/golang-mockmania-cli-command-with-cobra
https://g14a.dev/posts/Testing-Cobra-Subcommands/

@vhadianto vhadianto added the cli label Aug 15, 2023
@vhadianto vhadianto assigned Subhajit97 and unassigned Subhajit97 Aug 15, 2023
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale label Apr 15, 2024
Copy link

This issue was closed because it has been stalled for 90 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants