Commit graph

73 commits

Author SHA1 Message Date
Alexandre Aubin
d2f68cb536 We don't need to auth in CLI 2020-05-01 02:44:15 +02:00
Alexandre Aubin
3a3ce804d6 Wat da fuke pytz 2020-04-02 23:44:15 +02:00
Kay0u
85d48ae07d
Merge branch 'stretch-unstable' into moar-tests 2020-03-30 23:04:19 +02:00
Kay0u
a47a230611
staticmethod and format_arg_names fix 2020-01-14 22:45:19 +07:00
Kay0u
6490184333
format 2020-01-02 23:41:21 +08:00
Kay0u
3abde9c008
default use global conf 2020-01-02 12:59:16 +08:00
Kay0u
0be1d74e4a
set handler if no password is provided 2020-01-02 12:34:47 +08:00
decentral1se
54b8cab133 Apply Black on all the code base 2019-11-25 17:21:13 +01:00
Alexandre Aubin
65fe685a90 Get rid of this 'help' madness and more generally this three-tuppled containing various tuples and weird stuff ... use a simple dict everywhere instead 2019-08-20 05:43:17 +02:00
Alexandre Aubin
cad2cd8006 Get rid of the _format_conf madness. Instead, have clear functions to define if authentication is required, trigger the auth process if so 2019-08-20 05:43:09 +02:00
Alexandre Aubin
968667d9ed Try to improve the semantic of where/when the auth happens... 2019-08-20 03:32:52 +02:00
Luke Murphy
dfd0868510
Use flake8 under Tox and fix complaints 2019-07-29 13:26:16 +02:00
Alexandre Aubin
22bfd1dbef autopep8 + a few manual tweaks 2018-12-13 19:14:29 +00:00
Alexandre Aubin
a58d4dbb87 Remove old m18n.g and errno 2018-12-12 13:54:01 +00:00
Irina LAMBLA
dcf4c8fcf0 Enh Simplify moulinette error 2018-12-12 13:37:00 +00:00
ljf
8b8296e87b [fix] Better way to calculate locale timezone 2018-12-10 01:17:04 +01:00
ljf
57602c5a1c [enh] Transform naive date into UTC aware date 2018-12-10 00:00:49 +01:00
ljf
5125d948af [enh] Display date as system timezone 2018-12-09 19:30:54 +01:00
Alexandre Aubin
6f9bb54542 Microdecision: prefix info messages with blue 'Info:' 2018-07-25 14:38:37 +00:00
Alexandre Aubin
7b0ad0901a [enh] Show description of command in --help (#148) 2017-08-07 15:28:23 +02:00
Laurent Peuch
09f49e4a8a [mod] pep8 2017-08-05 12:03:33 +02:00
Laurent Peuch
5bf2f46f47 Merge pull request #143 from YunoHost/support-subcategories
[enh] Support subcategories
2017-08-05 11:48:22 +02:00
Laurent Peuch
1efa5c8b6e Merge pull request #145 from YunoHost/refactoring2
Remove globals variables magic and add explicit import now
2017-08-05 11:48:06 +02:00
Alexandre Aubin
0bbd47c090 Merge branch 'unstable' into support-subcategories
Conflicts:
	moulinette/actionsmap.py
2017-07-29 12:38:18 -04:00
Laurent Peuch
e9bc14845a [enh] Make ActionsMap._construct_parser code more readable (#144)
* [mod] autopep8
* [mod] remove useless try/except
* [mod] renaming + comment
* [mod] remove debug print
* [mod] more renaming
* [doc] explicit comment
* [mod] more renaming
* [mod] more renaming and comments
* [mod] more renaming
* [doc] usefull comment
* [mod] more renaming
* [mod] this is always true
* [mod] remove conditions that are always True
* [mod] more renaming
* [doc] add a comment from the docstring
* [mod] remove useless exception
* [mod] remove useless ()
* [mod] style
* [mod] it's better to fail than to silencly ignore a typo
* [mod] more renaming
* [doc] add a comment to avoid looking at yet-another-file
* [mod] renaming, make method name match reality and had a method for code readability
* [mod] remove one indirection level
* [mod] we always have actions
* [doc] add more comments
* [mod] simplify code again
* [mod] case never happen
* [mod] delegate responsability to class to make code more readable
* [mod] finish moving _add_arguments down to parsers
* [mod] invert conditions to make things more readable
* [mod] style
* [mod] remove useless exception
* [mod] simplify code
2017-07-29 17:45:36 +02:00
Laurent Peuch
b4d36b2d3e [mod] more eleguant way of removing globals: from moulinette import m18n, pkg works 2017-07-25 21:19:51 +02:00
Laurent Peuch
863c3dd050 [mod] proposition to remove globals magic 2017-07-25 16:18:09 +02:00
Alexandre Aubin
6a6fb89fd0 Dirty hack to be able to display 'actions' and 'subcategories' in different section in --help 2017-07-23 15:47:20 -04:00
Alexandre Aubin
c01cef3147 Adding actions to subcategory 2017-07-23 09:17:27 -04:00
Laurent Peuch
2c368596e9 [mod] remove one indirection level 2017-07-23 04:44:13 +02:00
Laurent Peuch
1caa172072 [mod] renaming, make method name match reality and had a method for code readability 2017-07-23 04:16:12 +02:00
Laurent Peuch
93961e9aae [fix] log module was redifining constants thus breaking import 2017-01-02 03:53:15 +01:00
Laurent Peuch
23276c6941 [fix] don't circumway logging module 2016-12-22 13:26:11 +01:00
Laurent Peuch
897ad08183 [mod] autopep8 2016-12-18 01:15:40 +01:00
Laurent Peuch
d8313e84aa [enh] don't timeout by default on cli 2016-12-15 13:23:15 +01:00
Laurent Peuch
f0541e570d [fix] syntax error in python would avoid catching excepted exception 2016-12-03 00:01:27 +01:00
Laurent Peuch
efb481bda6 [mod] increase cli timeout 2016-11-25 16:25:57 +01:00
Jérôme Lebleu
c92900edd8 [enh] Allow to define deprecated action 2016-04-16 21:26:29 +02:00
Jérôme Lebleu
802c39f117 [ref] Rename 'deprecated' action argument to 'deprecated_alias' 2016-04-16 21:04:09 +02:00
Jérôme Lebleu
a852861b2d [enh] Sort result when pretty printing result from the cli 2016-04-16 20:03:17 +02:00
Jérôme Lebleu
346e5a164f [enh] Allow to not output result from the cli 2016-04-16 20:02:01 +02:00
Jérôme Lebleu
6cfe67fb9c [i18n] Use named variables in translations 2016-04-09 22:46:49 +02:00
Jérôme Lebleu
46e6e4dc7a [enh] Allow to define deprecated action names 2016-04-09 19:33:57 +02:00
Laurent Peuch
c04f723ac2 [mod] make cli color endling more usable and DRY 2016-03-28 20:14:20 +02:00
Jérôme Lebleu
d2a47a0dba [fix] Set authenticate handler if password is given (bugfix #228) 2016-02-28 10:49:19 +01:00
Jérôme Lebleu
db924ea911 [enh] Allow to pass the password as argument in the cli 2015-12-24 10:34:46 +01:00
Jérôme Lebleu
4cf898d9c7 [enh] Allow to use a formatter and improve tty check in TTYHandler 2015-11-14 19:14:45 +01:00
Jérôme Lebleu
0b8b51d306 [enh] Output to stderr if level >= WARNING in TTYHandler 2015-11-14 18:46:54 +01:00
Jérôme Lebleu
349c03321d [enh] Add auto-completion support in the cli 2015-11-13 13:04:27 +01:00
Jérôme Lebleu
2e83d9d1ff [enh] Replace print_* arguments by output_as in the cli 2015-11-13 11:56:14 +01:00