(arguments)
| 96 | |
| 97 | |
| 98 | def run(arguments): |
| 99 | if arguments.email: |
| 100 | global EMAIL |
| 101 | EMAIL = arguments.email # override the default testing email |
| 102 | if arguments.password: |
| 103 | global PASSWORD |
| 104 | PASSWORD = arguments.password # override the default testing password |
| 105 | # these options are mutually exclusive |
| 106 | if arguments.create_pat: |
| 107 | create_pat() |
| 108 | elif arguments.get_userid: |
| 109 | _, user_id = login() |
| 110 | # This print needs to be present so we can read the value in CI. |
| 111 | print(user_id) |
| 112 | else: |
| 113 | print( |
| 114 | f"No relevant arguments specified. Run {sys.argv[0]} --help to see available options" |
| 115 | ) |
| 116 | sys.exit(1) |
| 117 | |
| 118 | |
| 119 | if __name__ == "__main__": |
no test coverage detected