Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
54def00
Export cli() function from ./bin/prettier.js
josephfrazier Jun 14, 2017
d6933ec
cli() function returns exit code
josephfrazier Jun 14, 2017
24c90fa
cli() takes stdin/stdout/stderr args
josephfrazier Jun 14, 2017
d8f9ded
Rename processArgvSlice2 to args
josephfrazier Jun 14, 2017
b328c4e
cli() returns an object
josephfrazier Jun 14, 2017
dec65aa
Export { cli } from ./bin/prettier
josephfrazier Jun 14, 2017
006cb7f
Add comment about direct ./bin/prettier usage
josephfrazier Jun 14, 2017
93960dc
Allow nested cli functions to force exit by throwing error
josephfrazier Jun 15, 2017
66a4206
Use glob.sync to ensure the exitCode can be set correctly
josephfrazier Jun 15, 2017
f26f7ab
Add test demonstrating programmatic usage of the CLI
josephfrazier Jun 15, 2017
e13da37
Add "use strict" to new test file
josephfrazier Jun 15, 2017
1ee9c23
Make cli() return a Promise
josephfrazier Jun 15, 2017
80afdd7
Convert console.log/warn/error to stdout/stderr.write
josephfrazier Jun 15, 2017
edb279e
Handle thrown strings/Errors
josephfrazier Jun 15, 2017
9b0a91b
Add cliWrapper() to decorate strings/Errors with exitCode
josephfrazier Jun 15, 2017
81fd948
Throw Errors instead of objects/strings
josephfrazier Jun 16, 2017
038c925
Ensure cliWrapper() always returns a Promise
josephfrazier Jun 16, 2017
0e44b19
Dedupe process.exitCode setters
josephfrazier Jun 16, 2017
67f068c
Make cliWrapper() always resolve
josephfrazier Jun 16, 2017
d2a1221
Remove unnecessary .catch() from cliWrapper()
josephfrazier Jun 16, 2017
50291f9
Add comment for cliWrapper()
josephfrazier Jun 16, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading