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

Global dependencies passed to commands #61

Open
guergabo opened this issue May 24, 2024 · 0 comments
Open

Global dependencies passed to commands #61

guergabo opened this issue May 24, 2024 · 0 comments

Comments

@guergabo
Copy link
Contributor

guergabo commented May 24, 2024

Problem

Part of being able to add more unit tests for issue #58 and run them concurrently involves removing/reducing the number of shared global dependencies.

Solution

We could do this by avoiding a command's logic from calling global variables directly and instead pass them a copy to a command's constructor in the cli.Main.

Here is an example for the switch command: #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant