Skip to content

Allow file input#4

Open
emily-desverreaux wants to merge 5 commits into2bdenny:masterfrom
emily-desverreaux:FileInput
Open

Allow file input#4
emily-desverreaux wants to merge 5 commits into2bdenny:masterfrom
emily-desverreaux:FileInput

Conversation

@emily-desverreaux
Copy link
Copy Markdown
Contributor

This allows for ReScue to accept input from a file containing multiple regexes, rather than a single line. I also made changes so that it prints the prefix, pump, and suffix in a JSON formatted string. I imported the Google GSON (v.2.6.2) library into the project for this.

Modified to allow input from text files.
…an error

where if a single regex was input, it asked for the input twice. This is now
fixed.
*Prints prefix, pump, and suffix strings in JSON format.
*Updated README output examples
ReScue can now accept input from a text file. This makes the program
command-line friendly for use with other detectors and allows for multiple
regexes to be detected with ease.

Other changes:
-Prints JSON formatted prefix, pump, and suffix
-Updated usage message to indicate that -regex-file is an option.
ReScue can now accept input from a text file. This makes the program
command-line friendly for use with other detectors and allows for multiple
regexes to be detected with ease.

Other changes:
-Prints JSON formatted prefix, pump, and suffix
-Updated usage message to indicate that -regex-file is an option.
@davisjam
Copy link
Copy Markdown

Overall this looks fine. Your IDE has changed many lines for linting purposes, which makes this PR look a lot bigger than it really is.

@emily-desverreaux I'm going to open a separate PR derived from your fork, and remove the unrelated line changes.

@davisjam
Copy link
Copy Markdown

davisjam commented Jan 1, 2019

This can be closed. Superseded by #6.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants