Get Solver API token for a selected Leap project.
(*, config_file, profile, project_hint, json_output, raw_output, output)
| 1166 | @raw_output |
| 1167 | @standardized_output |
| 1168 | def leap_project_token(*, config_file, profile, project_hint, json_output, raw_output, output): |
| 1169 | """Get Solver API token for a selected Leap project.""" |
| 1170 | |
| 1171 | project, token = _get_sapi_token_for_leap_project( |
| 1172 | config_file=config_file, profile=profile, |
| 1173 | project_hint=project_hint, output=output) |
| 1174 | |
| 1175 | output(f"Solver API token for project {project.name} ({project.code}) is {token}.", |
| 1176 | token=token, project=project.model_dump(), raw=token) |
| 1177 | |
| 1178 | |
| 1179 | def _get_sapi_token_for_leap_project( |
nothing calls this directly
no test coverage detected