CDCgov / cfa-config-generator

Apache License 2.0
0 stars 0 forks source link

CLI Base Commands #19

Closed amondal2 closed 3 weeks ago

amondal2 commented 1 month ago

Implementing a set of CLI commands to view config resources in Azure --

  1. confmod check-login checks if the CLI token is properly authenticated, returns an error if az login hasn't been run
  2. confmod list-jobs lists all unique job IDs in the rt-epinow2-config container
  3. confmod list-tasks lists all the tasks for a given job id. requires job_id parameter to be passed in via --job-id or -j flag
  4. confmod inspect-task prints the task configuration, requires job_id and task_filename parameters to be passed in via --job-id, -j and --task-filename, -t flags, respectively

Let me know if this workflow makes sense or if there are any improvements or other commands you'd like to see -- modifying the tasks will be the next step. These are the IDs I used for testing:

confmod list-tasks -j "Rt-estimation-4b20fb8492ef11efa2e387f6794e9316-2024-10-25T16-36-32"
confmod inspect-task -j "Rt-estimation-4b20fb8492ef11efa2e387f6794e9316-2024-10-25T16-36-32" -t '4b20fb8492ef11efa2e387f6794e9316_WY_Influenza_1729874192.json'
amondal2 commented 3 weeks ago

@zsusswein that's a good point, I'll create an issue for implementing some basic filtering logic (by state, disease, date range?) and showing a fixed amount of jobs/tasks in case there are a lot of them