summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: use f-strings for string formattingrefactor/f-stringsNejc Habjan2021-11-021-4/+4
|
* feat(api): add MR pipeline manager in favor of pipelines() methodNejc Habjan2021-06-131-1/+2
|
* chore: correct a type-hintJohn L. Villalovos2021-05-281-1/+2
|
* chore: fix import ordering using isortJohn L. Villalovos2021-05-251-1/+0
| | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/
* fix(cli): fix parsing CLI objects to classnamesNejc Habjan2021-05-151-7/+19
|
* chore: mypy: Disallow untyped definitionsJohn L. Villalovos2021-04-271-27/+28
| | | | | | | | | Be more strict and don't allow untyped definitions on the files we check. Also this adds type-hints for two of the decorators so that now functions/methods decorated by them will have their types be revealed correctly.
* chore: fix F841 errors reported by flake8John L. Villalovos2021-04-181-1/+0
| | | | | | Local variable name is assigned to but never used https://www.flake8rules.com/rules/F841.html
* chore: fix F401 errors reported by flake8John L. Villalovos2021-04-181-1/+1
| | | | | | F401: Module imported but unused https://www.flake8rules.com/rules/F401.html
* chore: disallow incomplete type defsJohn L. Villalovos2021-02-281-8/+11
| | | | | | | | | | Don't allow a partially annotated function definition. Either none of the function is annotated or all of it must be. Update code to ensure no-more partially annotated functions. Update gitlab/cli.py with better type-hints. Changed Tuple[Any, ...] to Tuple[str, ...]
* chore: add type-hints to gitlab/cli.pyJohn L. Villalovos2021-02-251-8/+11
|
* fix: wrong variable nameJohn L. Villalovos2021-02-251-1/+1
| | | | | Discovered this when I ran flake8 on the file. Unfortunately I was the one who introduced this wrong variable name :(
* feat: add an initial mypy test to tox.iniJohn L. Villalovos2021-02-221-1/+1
| | | | Add an initial mypy test to test gitlab/base.py and gitlab/__init__.py
* chore: explicitly import gitlab.v4.objects/cliJohn L. Villalovos2021-02-211-6/+13
| | | | | | | | | | | | | | | | | As we only support the v4 Gitlab API, explicitly import gitlab.v4.objects and gitlab.v4.clie instead of dynamically importing it depending on the API version. This has the added benefit of mypy being able to type check the Gitlab __init__() function as currently it will fail if we enable type checking of __init__() it will fail. Also, this also helps by not confusing tools like pyinstaller/cx_freeze with dynamic imports so you don't need hooks for standalone executables. And according to https://docs.gitlab.com/ee/api/, "GraphQL co-exists with the current v4 REST API. If we have a v5 API, this should be a compatibility layer on top of GraphQL."
* docs(cli): add auto-generated CLI referencedocs/cli-reference-pageNejc Habjan2020-10-111-0/+14
|
* chore: remove remnants of python2 importsNejc Habjan2020-08-221-1/+0
|
* feat: add autocompletion supportMartin Chlumsky2019-12-161-0/+6
|
* refactor: remove unused code, simplify string formatgodaji2019-10-061-1/+1
|
* feat: add support for job tokenMathieu Parent2019-09-061-1/+1
| | | | See https://docs.gitlab.com/ee/api/jobs.html#get-job-artifacts for usage
* fix(cli): don't fail when the short print attr value is Nonexarx002019-07-211-2/+2
| | | | | Fixes #717 Fixes #727
* refactor: format everything blackrefactor/blackMax Wittig2019-05-161-42/+67
|
* Use sys.exit as in rest of codeHakan Fouren2019-03-071-2/+2
|
* Re-enable command specific help mesaagesHakan Fouren2019-03-061-3/+3
| | | | This makes sure that the global help message wont be printed instead of the command spedific one unless we fail to read the configuration file
* fix(cli): exit on config parse error, instead of crashingMax Wittig2018-11-041-3/+8
| | | | * Exit and hint user about possible errors * test: adjust test cases to config missing error
* fix(cli): print help and usage without config filefix/help-usageMax Wittig2018-10-041-1/+5
| | | | Fixes #560
* silence logs/warnings in unittestsCyril Jouve2018-06-071-1/+2
|
* pep8 fixGauvain Pocentek2018-03-111-1/+2
|
* [cli] Restore the --help option behaviorGauvain Pocentek2018-03-111-3/+9
| | | | Fixes #381
* [cli] Allow to read args from filesGauvain Pocentek2018-03-051-1/+14
| | | | | | | With the @/file/path syntax (similar to curl) user can provide values from attributes in files. Fixes #448
* Add support for oauth and anonymous auth in config/CLIGauvain Pocentek2017-11-101-2/+3
|
* pep8 fixGauvain Pocentek2017-09-071-1/+1
|
* [v4] fix CLI for some mixin methodsGauvain Pocentek2017-09-071-10/+15
|
* CLI: yaml and json outputs for v4Gauvain Pocentek2017-08-181-4/+16
| | | | | | Verbose mode only works with the legacy output. Also add support for filtering the output by defining the list of fields that need to be displayed (yaml and json only).
* [v4] CLI support is backGauvain Pocentek2017-08-171-2/+39
|
* Refactor the CLIGauvain Pocentek2017-06-251-0/+105
| | | | | | | v3 and v4 CLI will be very different, so start moving things in their own folders. For now v4 isn't working at all.
* Add missing doc filesGauvain Pocentek2017-06-251-564/+0
|
* Remove unused future.division importGauvain Pocentek2017-06-111-1/+0
| | | | We don't do math.
* update copyright yearsGauvain Pocentek2017-05-241-1/+1
|
* Provide API wrapper for cherry picking commits (#236)Christian2017-03-211-1/+10
|
* [CLI] Fix wrong use of argumentsGauvain Pocentek2016-12-251-4/+4
| | | | | The previous change removed undefined arguments from the args dict, don't try to use possibly missing arguments without a fallback value.
* [CLI] ignore empty argumentsGauvain Pocentek2016-12-241-1/+4
| | | | | | | Gitlab 8.15 doesn't appreciate arguments with None as value. This breaks the python-gitlab CLI. Fixes #199
* CLI: add support for project all --allGauvain Pocentek2016-11-191-4/+13
| | | | | | Rework the extra opts definition to allow setting typed arguments. Fixes #153
* Add support for --all in CLIGauvain Pocentek2016-09-231-0/+2
| | | | Fixes #153
* CLI: refactor _die()Gauvain Pocentek2016-07-181-35/+36
|
* Fix pep8 testGauvain Pocentek2016-07-161-1/+2
|
* implement CLI for project archive/unarchive/shareGauvain Pocentek2016-07-161-1/+25
|
* Add support for project-issue moveGauvain Pocentek2016-06-191-1/+10
|
* Add support for build artifacts and traceissue-122Gauvain Pocentek2016-06-071-1/+17
| | | | Fixes #122
* project issue: doc and CLI for (un)subscribeGauvain Pocentek2016-05-281-0/+16
|
* Manage optional parameters for list() and get()Gauvain Pocentek2016-05-151-3/+13
| | | | | * List these elements in the API doc * Implement for License objects
* implement star/unstar for projectsGauvain Pocentek2016-05-131-1/+24
|