github / gh-valet

Valet helps facilitate the migration of Azure DevOps, CircleCI, GitLab CI, Jenkins, and Travis CI pipelines to GitHub Actions.
MIT License
510 stars 35 forks source link

Add --no-http-cache option and refactor options #49

Closed luke-engle closed 2 years ago

luke-engle commented 2 years ago

What's changing?

Adds the --no-http-cache option to gh-valet and refactors the options to split options that are specific to transformer commands (audit, dry-run, migrate) from options that should be enabled for all commands including forecast

PS. Naming is hard πŸ˜†

How's this tested?

πŸ‘€

➜ dotnet run --project src/Valet/Valet.csproj -- forecast azure-devops --help
Options:
  -g, --azure-devops-organization <azure-devops-organization>  The Azure DevOps organization name.
  -p, --azure-devops-project <azure-devops-project>            The Azure DevOps project name.
  -u, --azure-devops-instance-url <azure-devops-instance-url>  The URL of the Azure DevOps instance.
  -t, --azure-devops-access-token <azure-devops-access-token>  Access token for the Azure DevOps instance.
  -o, --output-dir <output-dir> (REQUIRED)                     The location for any output files.
  --start-date <start-date>                                    The start date of the forecast analysis in YYYY-MM-DD format. [default: 6/3/2022 
                                                               12:18:37 PM]
  --time-slice <time-slice>                                    The time slice in seconds to use for computing concurrency metrics. [default: 60]
  --source-file-path <source-file-path>                        The file path(s) to existing jobs data.
  -o, --output-dir <output-dir> (REQUIRED)                     The location for any output files.
  --credentials-file <credentials-file>                        The file containing the credentials to use.
  --no-telemetry                                               Boolean value to disallow telemetry.
  --no-ssl-verify                                              Disable ssl certificate verification.
  --no-http-cache                                              Disable caching of http responses.
  -?, -h, --help                                               Show help and usage information

Closes [related issues]

github-actions[bot] commented 2 years ago

Unit Test Results

24 tests  Β±0   24 :heavy_check_mark: Β±0   0s :stopwatch: Β±0s βŸβ€„1 suites Β±0β€‚β€ƒβ€ƒβŸβ€„0 :zzz: Β±0  βŸβ€„1 files   Β±0β€‚β€ƒβ€ƒβŸβ€„0 :x: Β±0 

Results for commit e2e09115. ± Comparison against base commit 68b05b05.

:recycle: This comment has been updated with latest results.