Skip to content

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

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions