Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

--stdin flag for CLI #23

Closed
lpil opened this issue Jul 20, 2017 · 2 comments
Closed

--stdin flag for CLI #23

lpil opened this issue Jul 20, 2017 · 2 comments

Comments

@lpil
Copy link
Owner

lpil commented Jul 20, 2017

Extend the current command line offering with a --stdin flag.

When this flag is given read the input source code from STDIN, format it, and print the outputted style to STDOUT.

This is intended to be used with editor integrations such as https://github.com/sbdchd/neoformat :)

@rgreenjr
Copy link
Contributor

If both the --stdin flag and a path argument are given, we can exit with an error message or ignore the path argument. Do yo have a preference?

@binaryseed binaryseed mentioned this issue Jul 22, 2017
3 tasks
@lpil
Copy link
Owner Author

lpil commented Jul 23, 2017

I think an error message might be better, but this can be a later improvement if need be.

@lpil lpil closed this as completed Jul 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants