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

Look into all module files to find all traces of structure methods. #3

Open
vburenin opened this issue Oct 3, 2016 · 6 comments
Open

Comments

@vburenin
Copy link
Owner

vburenin commented Oct 3, 2016

No description provided.

@decibel
Copy link

decibel commented May 4, 2017

Possibly related to this... I have a package that's spread across multiple files, which means I have to feed all those files to ifacemaker with multiple -f's. That's obviously rather cumbersome (though marginally less painful via for f in *.go; do echo -n " -f $f"; done).

It would be nice if you could just point ifacemaker at either a package or directory.

@vburenin vburenin changed the title Look into all module files to fine all traces of structure methods. Look into all module files to find all traces of structure methods. May 5, 2017
@vburenin
Copy link
Owner Author

vburenin commented May 5, 2017

makes sense, it should not be hard. I may take a look during weekend.

ps. glad to see people from Austin ;)

nkovacs added a commit to nkovacs/ifacemaker that referenced this issue Jun 29, 2017
Also ignore files that don't contain exported methods
of the source struct, to avoid problems with imports (see vburenin#9).

Fixes vburenin#3
nkovacs added a commit to nkovacs/ifacemaker that referenced this issue Jul 5, 2017
Also ignore files that don't contain exported methods
of the source struct, to avoid problems with imports (see vburenin#9).

Fixes vburenin#3
@slatermorgan
Copy link

I have struct methods spread across multiple files, is there anyway to include them all when running ifacemaker?

@vburenin
Copy link
Owner Author

vburenin commented May 9, 2023

@slatermorgan Unfortunately it is not possible, however you may want to contribute this functionality as many find it useful.

@slatermorgan
Copy link

I actually found a slight workaround. As file accepts a glob you can run the following bash command.

ifacemaker -f "*.go" -s Struct -i Interface -p package

vburenin pushed a commit that referenced this issue Aug 28, 2023
* feat(types): handle types not found in input files by emitting error (#1)

* Feat/handle not found types (#3)

* feat(types): handle types not found in input files by emitting error

* ci(actions): enable actions

* ci(actions): enable actions (#4)

* Ci/actiosn (#5)

* ci(actions): enable actions

* ci(actions): enable actions

* fix(ci): remove releaser from actions (#6)

* feat(validate): input file for struct provided (#7)
@emfomy
Copy link

emfomy commented Sep 12, 2023

Is there a way to exclude test and mock files?

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

4 participants