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

Add -stdin and -stdout command line options #83

Closed
wants to merge 2 commits into from
Closed

Add -stdin and -stdout command line options #83

wants to merge 2 commits into from

Conversation

sjmatta
Copy link
Contributor

@sjmatta sjmatta commented Oct 7, 2015

Not sure if this fits in with your preferred CLI style, so I'd be happy to make any changes you'd prefer. For https://github.com/ditinc/linter-cflint, I needed to take input from stdin and output to stdout.

Opening pull request to discuss.

Need to extend this to all types. Right now it's just for XML.
Added -stdin and -stdout command line options so that CFLint can be used
by processes that can't or don't want to write to disk.
@ryaneberly
Copy link
Contributor

I'm good with the direction you went, with the following caveats.

  • I don't think you need the stdout CL parm, it defaults to std if you don't specify a textOutFile name
  • the CFLintMain file you patched is pretty out of date :-)
  • I'm inclined to assume stdin if there is no -folder or -file specified.

What do you think?

@sjmatta
Copy link
Contributor Author

sjmatta commented Oct 8, 2015

Agreed on all three points - is dev the current branch? I can patch that one instead.

@sjmatta sjmatta closed this Oct 8, 2015
@ryaneberly
Copy link
Contributor

yes you can start with what's in the dev branch

On Thu, Oct 8, 2015 at 9:23 AM, Stephen Matta [email protected]
wrote:

Closed #83 #83.


Reply to this email directly or view it on GitHub
#83 (comment).

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