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

should allow case insensitive match in fabric.contrib.files.contains() #1203

Closed
xoul opened this issue Oct 2, 2014 · 1 comment
Closed

Comments

@xoul
Copy link

xoul commented Oct 2, 2014

Hi,
maybe fabric.contrib.files.contains() within fabric/contrib/files.py should allow case insensitive match.

Since contains() uses egrep, where should be a way to pass it a "-i".
Maybe a case_insensitive defaulting to false can be added:

fabric.contrib.files.contains(filename, text, exact=False, use_sudo=False, escape=True, shell=False, case_insensitive=False)

cmattoon added a commit to cmattoon/fabric that referenced this issue Dec 21, 2014
cmattoon added a commit to cmattoon/fabric that referenced this issue Dec 21, 2014
@bitprophet
Copy link
Member

Rolling into #1240

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

1 participant