Commit graph

33 commits

Author SHA1 Message Date
Ankush Menat
ebd47429a5 chore: grammar?
This looks weird without fullstop when there are suggestions
2024-03-04 16:32:48 +05:30
Ankush Menat
ef5a173db0
fix: misleading CLI error message for missing command (#25049) 2024-03-04 10:45:46 +00:00
David Arnold
1a061d4590
fix: rely on pyenv to collect bench commands, however that may be set up (#21975) 2023-08-14 15:02:32 +05:30
Ankush Menat
441495b561
refactor!: Drop support for currentsite.txt (#21536)
* refactor!: Drop currentsite.txt

- `bench use` will continue to work.
- Instead of txt file use common_site_config to set default site using `default_site` key.
- `FRAPPE_SITE` environment variable also works

* fix(DX): warn if non-empty currentsite.txt is present
2023-06-30 17:57:40 +05:30
Gavin D'souza
8d19a815b3 refactor: bench_helper
* Walrus operators ftw
* Pathlib to reduce verbose path joins crie
* Added typing for sanity
2022-08-11 23:53:21 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
72c239342e chore: Remove temporary warnings filter 2021-05-27 16:40:02 +05:30
Gavin D'souza
88ef41bc58 fix(typo): Let's try executing bound method instead 2021-05-26 19:49:22 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Gavin D'souza
8cc6804850 fix: Show deprecation warnings only if DEV_SERVER is set
This will show warnings in bench start commands by default as this
envvar is set.
2021-05-19 13:16:16 +05:30
Gavin D'souza
2dde3a9b01 fix: Hide all warnings in frappe commands
Hide all warnings when triggered via frappe.utils.bench_helper
2021-05-19 12:47:57 +05:30
Faris Ansari
b181b69894 feat: Set default site using FRAPPE_SITE env var
Default site can now be set using the environment variable FRAPPE_SITE
An attempt to deprecate the use of currentsite.txt
2021-02-04 22:19:39 +05:30
Gavin D'souza
a86ae948f7 fix(commands): raise SiteNotSpecifiedError if site not found in context 2020-05-18 13:01:33 +05:30
Rushabh Mehta
6353912e79 [fix] bench_helper.py 2018-05-28 12:48:28 +05:30
Rushabh Mehta
4aff164b69 [fix] for bench get-app 2018-05-27 14:28:42 +05:30
Achilles Rasquinha
0fc518ace4 python 3 fixes 2018-03-31 18:15:43 +05:30
Rushabh Mehta
a3910cde9b
[debug] dont silently fail if requirements are missing (#5201) 2018-03-19 18:25:32 +05:30
Achilles Rasquinha
30726f6706 Fix importlib error 2018-02-08 11:40:12 +05:30
Aditya Hase
b51ad328af Convert dict.keys() to list 2017-08-10 22:06:09 +05:30
Rushabh Mehta
5cebfb26b9 [minor] fix patch and module command 2017-08-03 12:02:18 +05:30
Makarand Bauskar
09a3a77ec2 [revert] Print traceback on ImportError in get_app_commands (#3846)
* [revert] Print traceback on ImportError in get_app_commands

* [tests] fixed the customize form test cases
2017-08-03 11:30:06 +05:30
Aditya Hase
b4b889835a Print traceback on ImportError in get_app_commands (#3833) 2017-08-02 17:04:01 +05:30
samicoder
173523ce8b fix other apps command execution 2017-06-24 18:21:40 +03:00
Rushabh Mehta
4203ebdfc7 [enhance] make bench commands extensible by apps (#3457) 2017-06-12 09:15:55 +05:30
tundebabzy
7b41d7e5eb Python 3 compatible print statements (#3199)
* changes print statements in file to python 3 compatible style using `__future__`

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* changes deprecated md5 module to hashlib

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements

* adds python 3 style for print statements
2017-05-01 12:34:29 +05:30
Anand Doshi
c05997a19f [minor] click disable warning 2015-08-21 14:50:42 +05:30
Pratik Vyas
110edcdc2d [fix] get commands from all apps 2015-07-10 12:07:21 +05:30
Pratik Vyas
25a8be4662 add profile to cli 2015-03-05 16:47:15 +05:30
Pratik Vyas
2530ee8bd2 cli improvements 2015-03-04 10:29:18 +05:30
Rushabh Mehta
0dc8632063 [cli] search frappe, fix bench execute 2015-03-03 17:11:26 +05:30
Pratik Vyas
7993f8c1e8 new cli 2015-03-02 17:13:42 +05:30
Anand Doshi
f3b37df2dd [fix] Added unicode_literals if missing in py files 2015-02-24 12:24:20 +05:30
Pratik Vyas
c8f6fa5aea add bench helper 2015-02-03 11:58:25 +05:30