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 deno fmt --stdout option #2439

Merged
merged 1 commit into from Jun 1, 2019

Conversation

2 participants
@kt3k
Copy link
Contributor

commented Jun 1, 2019

This PR adds --stdout option to deno fmt, which outputs the formated code to stdout.

$ cat tests/badly_formatted.js 
console.log(
  "Hello World"
)
$ ./target/debug/deno fmt --stdout tests/badly_formatted.js 
console.log("Hello World");
$ cat tests/badly_formatted.js 
console.log(
  "Hello World"
)
$ ./target/debug/deno fmt tests/badly_formatted.js 
Formatting tests/badly_formatted.js
$ cat tests/badly_formatted.js 
console.log("Hello World");

closes #2090

@ry

ry approved these changes Jun 1, 2019

Copy link
Collaborator

left a comment

LGTM

@ry ry merged commit 79f770b into denoland:master Jun 1, 2019

3 checks passed

Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
license/cla Contributor License Agreement is signed.
Details

@kt3k kt3k deleted the kt3k:feature/add-fmt-stdout-option branch Jun 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.