When using register_script() there is a copy_all o...
# ask-the-community
b
When using register_script() there is a copy_all option. I want more precise control over what is copied from the source directory. I couldn't find the right option for this. When I look at the flytekit code, I see that it uses:
Copy code
ignore = IgnoreGroup(source, [GitIgnore, DockerIgnore, StandardIgnore])
And looking at
StandardIgnore
, I see the comment:
Copy code
"""Retains the standard ignore functionality that previously existed. Could in theory
    by fed with custom ignore patterns from cli."""
but not sure how that from cli or from API (my preference) control is done.
s
not sure how we can specify patterns from cli. @Eduardo Apolinario (eapolinario) since you added this docstring, would like to know if this is possible.
y
are the docker/gitignore files sufficient?
if not, what ux are you looking for? how would an api look/work?
b
Not from CLI. I am using FlyteRemote and it should be trivial to add it as an option
I ended up monkey patching one of the classes to make it work for myself.
CC @Yee
y
mind opening a pr?
i’m sure as long as things are backwards compatible, we can merge in something similar
b
Hi @Yee Would it be possible to have someone take a look at the contribution above?
y
yes
b
Hi @Yee, I've updated the PR. Would it be possible to get this into the next release perhaps? Not sure when that would be.
y
tyty