diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-06-04 06:47:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 06:47:34 +0200 |
commit | 4eb5bad1a7e17a38182e0ec68c48faa4a0306ceb (patch) | |
tree | 06669330ab2bf7e8b8fd48af291c02445d9c98b4 /gitlab/v4/cli.py | |
parent | 9ab3c107567f38967d918b7d69f29fd3cc83218e (diff) | |
parent | 6189437d2c8d18f6c7d72aa7743abd6d36fb4efa (diff) | |
download | gitlab-4eb5bad1a7e17a38182e0ec68c48faa4a0306ceb.tar.gz |
Merge pull request #2052 from python-gitlab/jlvillal/cli_minor_clean
chore: rename `__call__()` to `run()` in GitlabCLI
Diffstat (limited to 'gitlab/v4/cli.py')
-rw-r--r-- | gitlab/v4/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index ecf79c8..c6b391a 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -79,7 +79,7 @@ class GitlabCLI: # If we don't delete it then it will be added to the URL as a query-string del self.args[key] - def __call__(self) -> Any: + def run(self) -> Any: # Check for a method that matches object + action method = f"do_{self.what}_{self.action}" if hasattr(self, method): @@ -505,7 +505,7 @@ def run( fields: List[str], ) -> None: g_cli = GitlabCLI(gl=gl, what=what, action=action, args=args) - data = g_cli() + data = g_cli.run() printer: Union[JSONPrinter, LegacyPrinter, YAMLPrinter] = PRINTERS[output]() |