This commit is contained in:
dechert
2023-06-15 15:48:33 +02:00
parent 25564357bb
commit d5265d4e13
5 changed files with 23 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
import click
import gitlab_api_finder
import gitlab_ci_job_finder
@click.command()
@@ -8,10 +8,9 @@ import gitlab_api_finder
@click.option("--projectid", prompt="Id of Gitlab Project", help="Id of Gitlab Project.")
@click.option("--jobname", prompt="name of job to filter", help="Id of Gitlab Project.")
# TODO add option "to-file" for storing the resulting json on disk
def hello(count, projectid, jobname):
gitlab_api_finder.find_jobs(count, projectid, jobname)
def execute_gl_ci_finder(count, projectid, jobname):
gitlab_ci_job_finder.find_jobs(count, projectid, jobname)
# example usage: python glcifinder-cli.py --count 1000 --projectid 244 --jobname deploy-test
if __name__ == '__main__':
hello()
execute_gl_ci_finder()