Skip to content
Myr

Merge pull request #4412 from otherJL0/main

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Adding Fish commands to docs

authored by David Lord · committed by GitHub · parents 66f2ac6, afe77fe · Browse files · 9 files+155 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+155 added−0 removed

  • other:+155 added−0 removed

9 files+155 added−0 removed

modified:docs/patterns/appfactories.rst+14 added
96 unmodified lines
9798 $ export FLASK_APP=myapp99 $ flask run100101 .. group-tab:: Fish102103 .. code-block:: text104105 $ set -x FLASK_APP myapp106 $ flask run107108 .. group-tab:: CMD109110 .. code-block:: text111
18 unmodified lines
130131 $ export FLASK_APP="myapp:create_app('dev')"132 $ flask run133134 .. group-tab:: Fish135136 .. code-block:: text137138 $ set -x FLASK_APP "myapp:create_app('dev')"139 $ flask run140141 .. group-tab:: CMD142143 .. code-block:: text144
25 unmodified lines
modified:docs/patterns/packages.rst+12 added
65 unmodified lines
66 .. code-block:: text6768 $ export FLASK_APP=yourapplication6970 .. group-tab:: Fish7172 .. code-block:: text7374 $ set -x FLASK_APP yourapplication7576 .. group-tab:: CMD7778 .. code-block:: text79
16 unmodified lines
96 .. code-block:: text9798 $ export FLASK_ENV=development99100 .. group-tab:: Fish101102 .. code-block:: text103104 $ set -x FLASK_ENV development105106 .. group-tab:: CMD107108 .. code-block:: text109
78 unmodified lines
modified:docs/tutorial/deploy.rst+7 added
55 unmodified lines
5657 $ export FLASK_APP=flaskr58 $ flask init-db5960 .. group-tab:: Fish6162 .. code-block:: text6364 $ set -x FLASK_APP flaskr65 $ flask init-db6667 .. group-tab:: CMD6869 .. code-block:: text70
76 unmodified lines
modified:docs/tutorial/factory.rst+8 added
143 unmodified lines
144 $ export FLASK_APP=flaskr145 $ export FLASK_ENV=development146 $ flask run147148 .. group-tab:: Fish149150 .. code-block:: text151152 $ set -x FLASK_APP flaskr153 $ set -x FLASK_ENV development154 $ flask run155156 .. group-tab:: CMD157158 .. code-block:: text159
34 unmodified lines
modified:docs/cli.rst+53 added
25 unmodified lines
2627 $ export FLASK_APP=hello28 $ flask run2930 .. group-tab:: Fish3132 .. code-block:: text3334 $ set -x FLASK_APP hello35 $ flask run3637 .. group-tab:: CMD3839 .. code-block:: text40
122 unmodified lines
163 * Restarting with inotify reloader164 * Debugger is active!165 * Debugger PIN: 223-456-919166167 .. group-tab:: Fish168169 .. code-block:: text170171 $ set -x FLASK_ENV development172 $ flask run173 * Serving Flask app "hello"174 * Environment: development175 * Debug mode: on176 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)177 * Restarting with inotify reloader178 * Debugger is active!179 * Debugger PIN: 223-456-919180181 .. group-tab:: CMD182183 .. code-block:: text184
43 unmodified lines
228 $ flask run229 * Running on http://127.0.0.1:8000/230 * Detected change in '/path/to/file1', reloading231232 .. group-tab:: Fish233234 .. code-block:: text235236 $ flask run --extra-files file1:dirA/file2:dirB/237 # or238 $ set -x FLASK_RUN_EXTRA_FILES file1 dirA/file2 dirB/239 $ flask run240 * Running on http://127.0.0.1:8000/241 * Detected change in '/path/to/file1', reloading242243 .. group-tab:: CMD244245 .. code-block:: text246
72 unmodified lines
319 $ export FLASK_RUN_PORT=8000320 $ flask run321 * Running on http://127.0.0.1:8000/322323 .. group-tab:: Fish324325 .. code-block:: text326327 $ set -x FLASK_RUN_PORT 8000328 $ flask run329 * Running on http://127.0.0.1:8000/330331 .. group-tab:: CMD332333 .. code-block:: text334
39 unmodified lines
374375 $ export FLASK_SKIP_DOTENV=1376 $ flask run377378 .. group-tab:: Fish379380 .. code-block:: text381382 $ set -x FLASK_SKIP_DOTENV 1383 $ flask run384385 .. group-tab:: CMD386387 .. code-block:: text388
22 unmodified lines
411 Unix Bash, :file:`venv/bin/activate`::412413 $ export FLASK_APP=hello414415 .. group-tab:: Fish416417 Fish, :file:`venv/bin/activate.fish`::418419 $ set -x FLASK_APP hello420421 .. group-tab:: CMD422423 Windows CMD, :file:`venv\\Scripts\\activate.bat`::424
288 unmodified lines
modified:docs/config.rst+24 added
74 unmodified lines
7576 $ export FLASK_ENV=development77 $ flask run7879 .. group-tab:: Fish8081 .. code-block:: text8283 $ set -x FLASK_ENV development84 $ flask run8586 .. group-tab:: CMD8788 .. code-block:: text89
361 unmodified lines
451 $ export YOURAPPLICATION_SETTINGS=/path/to/settings.cfg452 $ flask run453 * Running on http://127.0.0.1:5000/454455 .. group-tab:: Fish456457 .. code-block:: text458459 $ set -x YOURAPPLICATION_SETTINGS /path/to/settings.cfg460 $ flask run461 * Running on http://127.0.0.1:5000/462463 .. group-tab:: CMD464465 .. code-block:: text466
64 unmodified lines
531 $ export MAIL_ENABLED=false532 $ flask run533 * Running on http://127.0.0.1:5000/534535 .. group-tab:: Fish536537 .. code-block:: text538539 $ set -x SECRET_KEY "5f352379324c22463451387a0aec5d2f"540 $ set -x MAIL_ENABLED false541 $ flask run542 * Running on http://127.0.0.1:5000/543544 .. group-tab:: CMD545546 .. code-block:: text547
245 unmodified lines
modified:docs/debugging.rst+14 added
51 unmodified lines
5253 $ export FLASK_ENV=development54 $ flask run5556 .. group-tab:: Fish5758 .. code-block:: text5960 $ set -x FLASK_ENV development61 $ flask run6263 .. group-tab:: CMD6465 .. code-block:: text66
45 unmodified lines
112113 $ export FLASK_ENV=development114 $ flask run --no-debugger --no-reload115116 .. group-tab:: Fish117118 .. code-block:: text119120 $ set -x FLASK_ENV development121 $ flask run --no-debugger --no-reload122123 .. group-tab:: CMD124125 .. code-block:: text126
21 unmodified lines
modified:docs/quickstart.rst+15 added
52 unmodified lines
53 $ export FLASK_APP=hello54 $ flask run55 * Running on http://127.0.0.1:5000/5657 .. group-tab:: Fish5859 .. code-block:: text6061 $ set -x FLASK_APP hello62 $ flask run63 * Running on http://127.0.0.1:5000/6465 .. group-tab:: CMD6667 .. code-block:: text68
104 unmodified lines
173174 $ export FLASK_ENV=development175 $ flask run176177 .. group-tab:: Fish178179 .. code-block:: text180181 $ set -x FLASK_ENV development182 $ flask run183184 .. group-tab:: CMD185186 .. code-block:: text187
771 unmodified lines
modified:docs/server.rst+8 added
31 unmodified lines
32 $ export FLASK_APP=hello33 $ export FLASK_ENV=development34 $ flask run3536 .. group-tab:: Fish3738 .. code-block:: text3940 $ set -x FLASK_APP hello41 $ export FLASK_ENV=development42 $ flask run4344 .. group-tab:: CMD4546 .. code-block:: text47
118 unmodified lines