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

ast flagset parser to generate sflags structs #17

Open
roscopecoltran opened this issue Sep 26, 2018 · 0 comments
Open

ast flagset parser to generate sflags structs #17

roscopecoltran opened this issue Sep 26, 2018 · 0 comments

Comments

@roscopecoltran
Copy link

Hi,

Hope you are all well !

I am using amalgomate, a go tool for combining multiple different main packages into a single program or library, and I would like to export flags from repacked packages and wrap them with your package, so I can get more details info while printing the help of the repacked package. (Feature actually missing in the current amalgomate version)

Is there a tool allowing to convert a flagset from a package by parsing the ast in order to insert a sflags structs and import your package ?

It could be done here:
https://github.com/palantir/amalgomate/blob/master/amalgomate/astfuncs.go#L121-L133

Thanks for any insights.

Cheers,
Rosco

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