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

gen multiple SearchDir #682

Closed
dudochkin-victor opened this issue Apr 20, 2020 · 5 comments
Closed

gen multiple SearchDir #682

dudochkin-victor opened this issue Apr 20, 2020 · 5 comments

Comments

@dudochkin-victor
Copy link

is there way to scan few dir's for swagger api?
or what hapening if i call ParseAPI few times?

@sdghchj
Copy link
Member

sdghchj commented Apr 20, 2020

you can -exclude multiple dirs or files from top searching dir.

@dudochkin-victor
Copy link
Author

I have different task. I have a modular structure of project.
So few routes handled one project, other routes handled other project located absolutelly in different repo. Both located on top of $GOPATH.
So i want to parse both repos.

@sdghchj
Copy link
Member

sdghchj commented Apr 21, 2020

Use branch refactored, comma separated when setting --dir flag, and main file must be in the first dir.

swag init --dir ./dir1,./dir2

@dudochkin-victor
Copy link
Author

thanks

@genofire
Copy link

please open this issue again - it is not solved yet

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

4 participants