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

main.go refactoring: define cmd action as a separate func. #682

Merged
merged 2 commits into from
Oct 26, 2022

Conversation

cristiangreco
Copy link
Contributor

This splits out the scraper code into a separate file next to main.go, and wraps the action code into a separate function that is used as default action of the urfave app. Setting a default action prevents the help being printed out unnecessarily.

This splits out the scraper code into a separate file next to main.go,
and wraps the action code into a separate function that is used as
default action of the urfave app. Setting a default action prevents
the help being printed out unnecessarily.
@cristiangreco cristiangreco merged commit cff3fc5 into master Oct 26, 2022
@cristiangreco cristiangreco deleted the cristian/split-scrape-action branch October 26, 2022 09:34
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

Successfully merging this pull request may close these issues.

1 participant