Skip to content

Support passing individual files on cli so this can target staged files #28

Description

@robross0606

Tools like lint-staged and husky use the standard shell technique of passing a list of space-separated files against which to process. This allows it to run with commands like eslint, prettier or any other command that can take a list of files. However, copyright-header appears to only support the --include parameter which is regex.

Supporting this would allow copyright-header to be optimized for large repositories to run only on files which are staged as part of a precommit hook.

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions