Why does "flow check-contents" require use of < to redirect a file into it, but "flow suggest" does not? It seems like check-contents should assume the command-line arguments are file paths to be checked.
Why does "flow check-contents" require use of < to redirect a file into it, but "flow suggest" does not? It seems like check-contents should assume the command-line arguments are file paths to be checked.
flow check-contents < filename.jschecks the whole project, includingfilename.js. the most common use case is editor integration, where you want to check the project against an unsaved version of a file; in that case you'd doflow check-contents filename.js < unsaved editor buffer, which tells flow to temporarily replace the contents offilename.jsand recheck the whole project.if you're piping in a saved file, you can alternatively run
flow(akaflow status) instead of piping it in, since that also checks the entire project.