GithubHelp home page GithubHelp logo

Support for `flow --all` about flow-bin HOT 4 CLOSED

flow avatar flow commented on May 3, 2024
Support for `flow --all`

from flow-bin.

Comments (4)

gabelevi avatar gabelevi commented on May 3, 2024 4

Sorry for the delayed response!

flow --all is short for flow status --all. The reason flow status does not have an --all flag is as follows:

  1. If there is no Flow server running, flow status starts a Flow server by running flow start
  2. If there is a Flow server running, flow status just asks the servers for the errors

The --all flag is consumed by the server. It's the server that decides whether to check all files or just those with @flow. In case 1, flow status --all could just run flow start --all. But in case 2, what would happen if the Flow server was running without the --all flag? Would we restart the server? Or would we ignore the flag? This ambiguity is why flow status doesn't support the --all flag.

If you have a project that assumes the --all flag, you can add it to your .flowconfig.

[options]
all=true

Then whenever Flow runs, it will be as if the --all flag is set.

from flow-bin.

trueter avatar trueter commented on May 3, 2024

+1 :)

from flow-bin.

CrocoDillon avatar CrocoDillon commented on May 3, 2024

That makes sense, thanks! I didn't know about that option in the .flowconfig file, it's not in the docs.

from flow-bin.

trueter avatar trueter commented on May 3, 2024
[include]
.*/lib/helpers/.*

[ignore]
.*/node_modules/fbjs/.*
.*/node_modules/npmconf/.*
.*/node_modules/newrelic/.*
.*/node_modules/cjson/.*
.*/node_modules/bcryptjs/.*
.*/node_modules/config-chain/.*

[libs]
node_modules/flow-interfaces/interfaces

[options]
all=true
% flow                                                                                                                                                                                           
.flowconfig:16 Unsupported option specified! (all)
% npm ls |grep flow                                                                                                                                                                               8 ↵ ✖ ✹ ✭

npm ├─┬ [email protected]
├── [email protected]

Anything I'm missing?

from flow-bin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.