From 60b3f222a2773f01cb9f212bc420c061b66ec26e Mon Sep 17 00:00:00 2001 From: Ethan Dennis Date: Mon, 31 Oct 2022 17:18:30 -0700 Subject: [PATCH] Update first wave of references --- .github/CODEOWNERS | 2 +- .github/ISSUE_TEMPLATE/support.yml | 8 ++--- .github/workflows/ci.yml | 30 +++++++++---------- .gitignore | 3 +- CONTRIBUTING.md | 8 ++--- README.md | 10 +++---- src/.editorconfig | 2 +- .../ActionsImporter.UnitTests.csproj | 25 ++++++++++++++++ .../AppTests.cs | 4 +-- .../Models/ManifestTests.cs | 4 +-- .../Models/StringExtensionsTests.cs | 6 ++-- .../Models/VariableTests.cs | 6 ++-- .../Services/ConfigurationServiceTests.cs | 8 ++--- .../Services/DockerServiceTests.cs | 6 ++-- src/{Valet.sln => ActionsImporter.sln} | 4 +-- ...ttings => ActionsImporter.sln.DotSettings} | 0 .../ActionsImporter.csproj} | 2 +- src/{Valet => ActionsImporter}/App.cs | 8 ++--- .../Commands/Audit.cs | 3 +- .../Commands/AzureDevOps/Audit.cs | 2 +- .../AzureDevOps/BuildPipeline/DryRun.cs | 2 +- .../AzureDevOps/BuildPipeline/Migrate.cs | 2 +- .../Commands/AzureDevOps/Common.cs | 2 +- .../Commands/AzureDevOps/DryRun.cs | 2 +- .../Commands/AzureDevOps/Forecast.cs | 2 +- .../Commands/AzureDevOps/Migrate.cs | 2 +- .../AzureDevOps/ReleasePipeline/DryRun.cs | 2 +- .../AzureDevOps/ReleasePipeline/Migrate.cs | 2 +- .../Commands/BaseCommand.cs | 2 +- .../Commands/Circle/Audit.cs | 2 +- .../Commands/Circle/Common.cs | 2 +- .../Commands/Circle/DryRun.cs | 2 +- .../Commands/Circle/Forecast.cs | 2 +- .../Commands/Circle/Migrate.cs | 2 +- .../Commands/Common.cs | 4 +-- .../Commands/Configure.cs | 2 +- .../Commands/ContainerCommand.cs | 4 +-- .../Commands/DryRun.cs | 3 +- .../Commands/Forecast.cs | 3 +- .../Commands/GitHub/Forecast.cs | 2 +- .../Commands/GitLab/Audit.cs | 2 +- .../Commands/GitLab/Common.cs | 2 +- .../Commands/GitLab/DryRun.cs | 2 +- .../Commands/GitLab/Forecast.cs | 2 +- .../Commands/GitLab/Migrate.cs | 2 +- .../Commands/Jenkins/Audit.cs | 2 +- .../Commands/Jenkins/Common.cs | 2 +- .../Commands/Jenkins/DryRun.cs | 2 +- .../Commands/Jenkins/Forecast.cs | 2 +- .../Commands/Jenkins/Migrate.cs | 2 +- .../Commands/Migrate.cs | 3 +- .../Commands/Travis/Audit.cs | 2 +- .../Commands/Travis/Common.cs | 2 +- .../Commands/Travis/DryRun.cs | 2 +- .../Commands/Travis/Forecast.cs | 2 +- .../Commands/Travis/Migrate.cs | 2 +- .../Commands/Update.cs | 2 +- .../Commands/Version.cs | 2 +- src/{Valet => ActionsImporter}/Constants.cs | 4 +-- .../Handlers/ContainerHandler.cs | 2 +- .../Interfaces/IConfigurationService.cs | 2 +- .../Interfaces/IDockerService.cs | 2 +- .../Interfaces/IProcessService.cs | 2 +- .../Models/Docker/Manifest.cs | 2 +- .../Models/Docker/ManifestConfig.cs | 2 +- .../Models/Provider.cs | 2 +- .../Models/StringExtensions.cs | 2 +- .../Models/Variable.cs | 2 +- .../Models/YamlVerbosity.cs | 2 +- src/{Valet => ActionsImporter}/Program.cs | 8 ++--- .../Services/ConfigurationService.cs | 4 +-- .../Services/DockerService.cs | 6 ++-- .../Services/ProcessService.cs | 6 ++-- src/Valet.UnitTests/Valet.UnitTests.csproj | 25 ---------------- 74 files changed, 151 insertions(+), 146 deletions(-) create mode 100644 src/ActionsImporter.UnitTests/ActionsImporter.UnitTests.csproj rename src/{Valet.UnitTests => ActionsImporter.UnitTests}/AppTests.cs (97%) rename src/{Valet.UnitTests => ActionsImporter.UnitTests}/Models/ManifestTests.cs (97%) rename src/{Valet.UnitTests => ActionsImporter.UnitTests}/Models/StringExtensionsTests.cs (76%) rename src/{Valet.UnitTests => ActionsImporter.UnitTests}/Models/VariableTests.cs (93%) rename src/{Valet.UnitTests => ActionsImporter.UnitTests}/Services/ConfigurationServiceTests.cs (92%) rename src/{Valet.UnitTests => ActionsImporter.UnitTests}/Services/DockerServiceTests.cs (99%) rename src/{Valet.sln => ActionsImporter.sln} (74%) rename src/{Valet.sln.DotSettings => ActionsImporter.sln.DotSettings} (100%) rename src/{Valet/Valet.csproj => ActionsImporter/ActionsImporter.csproj} (92%) rename src/{Valet => ActionsImporter}/App.cs (96%) rename src/{Valet => ActionsImporter}/Commands/Audit.cs (96%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/Audit.cs (91%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/BuildPipeline/DryRun.cs (86%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/BuildPipeline/Migrate.cs (86%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/Common.cs (95%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/DryRun.cs (95%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/Forecast.cs (94%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/Migrate.cs (95%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/ReleasePipeline/DryRun.cs (85%) rename src/{Valet => ActionsImporter}/Commands/AzureDevOps/ReleasePipeline/Migrate.cs (85%) rename src/{Valet => ActionsImporter}/Commands/BaseCommand.cs (90%) rename src/{Valet => ActionsImporter}/Commands/Circle/Audit.cs (96%) rename src/{Valet => ActionsImporter}/Commands/Circle/Common.cs (97%) rename src/{Valet => ActionsImporter}/Commands/Circle/DryRun.cs (94%) rename src/{Valet => ActionsImporter}/Commands/Circle/Forecast.cs (95%) rename src/{Valet => ActionsImporter}/Commands/Circle/Migrate.cs (94%) rename src/{Valet => ActionsImporter}/Commands/Common.cs (98%) rename src/{Valet => ActionsImporter}/Commands/Configure.cs (94%) rename src/{Valet => ActionsImporter}/Commands/ContainerCommand.cs (90%) rename src/{Valet => ActionsImporter}/Commands/DryRun.cs (95%) rename src/{Valet => ActionsImporter}/Commands/Forecast.cs (98%) rename src/{Valet => ActionsImporter}/Commands/GitHub/Forecast.cs (97%) rename src/{Valet => ActionsImporter}/Commands/GitLab/Audit.cs (94%) rename src/{Valet => ActionsImporter}/Commands/GitLab/Common.cs (96%) rename src/{Valet => ActionsImporter}/Commands/GitLab/DryRun.cs (93%) rename src/{Valet => ActionsImporter}/Commands/GitLab/Forecast.cs (94%) rename src/{Valet => ActionsImporter}/Commands/GitLab/Migrate.cs (93%) rename src/{Valet => ActionsImporter}/Commands/Jenkins/Audit.cs (94%) rename src/{Valet => ActionsImporter}/Commands/Jenkins/Common.cs (96%) rename src/{Valet => ActionsImporter}/Commands/Jenkins/DryRun.cs (93%) rename src/{Valet => ActionsImporter}/Commands/Jenkins/Forecast.cs (96%) rename src/{Valet => ActionsImporter}/Commands/Jenkins/Migrate.cs (93%) rename src/{Valet => ActionsImporter}/Commands/Migrate.cs (97%) rename src/{Valet => ActionsImporter}/Commands/Travis/Audit.cs (96%) rename src/{Valet => ActionsImporter}/Commands/Travis/Common.cs (97%) rename src/{Valet => ActionsImporter}/Commands/Travis/DryRun.cs (93%) rename src/{Valet => ActionsImporter}/Commands/Travis/Forecast.cs (94%) rename src/{Valet => ActionsImporter}/Commands/Travis/Migrate.cs (94%) rename src/{Valet => ActionsImporter}/Commands/Update.cs (97%) rename src/{Valet => ActionsImporter}/Commands/Version.cs (93%) rename src/{Valet => ActionsImporter}/Constants.cs (97%) rename src/{Valet => ActionsImporter}/Handlers/ContainerHandler.cs (85%) rename src/{Valet => ActionsImporter}/Interfaces/IConfigurationService.cs (94%) rename src/{Valet => ActionsImporter}/Interfaces/IDockerService.cs (93%) rename src/{Valet => ActionsImporter}/Interfaces/IProcessService.cs (92%) rename src/{Valet => ActionsImporter}/Models/Docker/Manifest.cs (92%) rename src/{Valet => ActionsImporter}/Models/Docker/ManifestConfig.cs (87%) rename src/{Valet => ActionsImporter}/Models/Provider.cs (74%) rename src/{Valet => ActionsImporter}/Models/StringExtensions.cs (86%) rename src/{Valet => ActionsImporter}/Models/Variable.cs (96%) rename src/{Valet => ActionsImporter}/Models/YamlVerbosity.cs (63%) rename src/{Valet => ActionsImporter}/Program.cs (90%) rename src/{Valet => ActionsImporter}/Services/ConfigurationService.cs (97%) rename src/{Valet => ActionsImporter}/Services/DockerService.cs (97%) rename src/{Valet => ActionsImporter}/Services/ProcessService.cs (96%) delete mode 100644 src/Valet.UnitTests/Valet.UnitTests.csproj diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 84ba2ea5..25c1a276 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @github/valet-reviewers +* @github/actions-importer-reviewers diff --git a/.github/ISSUE_TEMPLATE/support.yml b/.github/ISSUE_TEMPLATE/support.yml index 67b1196d..2c9d432b 100644 --- a/.github/ISSUE_TEMPLATE/support.yml +++ b/.github/ISSUE_TEMPLATE/support.yml @@ -1,7 +1,7 @@ ## Description name: Bug Report -description: Request support or help from the Valet team +description: Request support or help from the Actions Importer team title: "[Support]: " labels: ["help wanted"] body: @@ -18,10 +18,10 @@ body: - label: macOS - label: Windows - type: textarea - id: valet-version + id: actions-importer-version attributes: label: What version of the tool are you using? - placeholder: i.e. the output of `gh valet version` + placeholder: i.e. the output of `gh actions-importer version` validations: required: true - type: textarea @@ -40,7 +40,7 @@ body: id: terms attributes: label: Code of Conduct - description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/github/gh-valet/blob/main/CODE_OF_CONDUCT.md) + description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/github/gh-actions-importer/blob/main/CODE_OF_CONDUCT.md) options: - label: I agree to follow this project's Code of Conduct required: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99392286..84b501fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - name: install dotnet-format run: dotnet tool install -g dotnet-format --version "5.1.*" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json - name: lint - run: dotnet format src/Valet.sln --verify-no-changes + run: dotnet format src/ActionsImporter.sln --verify-no-changes unit-test: runs-on: ubuntu-latest @@ -32,11 +32,11 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} - name: dotnet restore - run: dotnet restore src/Valet.sln + run: dotnet restore src/ActionsImporter.sln - name: dotnet build - run: dotnet build src/Valet.sln + run: dotnet build src/ActionsImporter.sln - name: dotnet test - run: dotnet test src/Valet.UnitTests/Valet.UnitTests.csproj --no-build --no-restore --logger "junit;LogFilePath=unit-tests.xml" + run: dotnet test src/ActionsImporter.UnitTests/ActionsImporter.UnitTests.csproj --no-build --no-restore --logger "junit;LogFilePath=unit-tests.xml" - name: publish test results uses: EnricoMi/publish-unit-test-result-action@v1 if: always() @@ -52,20 +52,20 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} - name: dotnet restore - run: dotnet restore src/Valet.sln + run: dotnet restore src/ActionsImporter.sln - name: dotnet build - run: dotnet build src/Valet.sln + run: dotnet build src/ActionsImporter.sln - name: dotnet publish run: | - dotnet publish src/Valet/Valet.csproj -c Release -r win10-x64 --self-contained -o dist/win-x64 --no-restore -p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true - dotnet publish src/Valet/Valet.csproj -c Release -r osx-x64 --self-contained -o dist/osx-x64 --no-restore -p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true - dotnet publish src/Valet/Valet.csproj -c Release -r linux-x64 --self-contained -o dist/linux-x64 --no-restore -p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true + dotnet publish src/ActionsImporter/ActionsImporter.csproj -c Release -r win10-x64 --self-contained -o dist/win-x64 --no-restore -p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true + dotnet publish src/ActionsImporter/ActionsImporter.csproj -c Release -r osx-x64 --self-contained -o dist/osx-x64 --no-restore -p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true + dotnet publish src/ActionsImporter/ActionsImporter.csproj -c Release -r linux-x64 --self-contained -o dist/linux-x64 --no-restore -p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true - name: prepare staging run: | mkdir -p ${{ runner.temp }}/staging - cp dist/win-x64/gh-valet.exe ${{ runner.temp }}/staging/valet-windows-amd64.exe - cp dist/osx-x64/gh-valet ${{ runner.temp }}/staging/valet-darwin-amd64 - cp dist/linux-x64/gh-valet ${{ runner.temp }}/staging/valet-linux-amd64 + cp dist/win-x64/gh-actions-importer.exe ${{ runner.temp }}/staging/actions-importer-windows-amd64.exe + cp dist/osx-x64/gh-actions-importer ${{ runner.temp }}/staging/actions-importer-darwin-amd64 + cp dist/linux-x64/gh-actions-importer ${{ runner.temp }}/staging/actions-importer-linux-amd64 - name: publish artifacts uses: actions/upload-artifact@v3 @@ -106,6 +106,6 @@ jobs: generate_release_notes: true fail_on_unmatched_files: true files: | - ${{ runner.temp }}/dist/valet-windows-amd64.exe - ${{ runner.temp }}/dist/valet-linux-amd64 - ${{ runner.temp }}/dist/valet-darwin-amd64 + ${{ runner.temp }}/dist/actions-importer-windows-amd64.exe + ${{ runner.temp }}/dist/actions-importer-linux-amd64 + ${{ runner.temp }}/dist/actions-importer-darwin-amd64 diff --git a/.gitignore b/.gitignore index 3005fba1..ef36ac6f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,8 @@ .DS_STORE output/ dist/ -gh-valet +gh-actions-importer + .env.*local # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b72262f7..c2d24e49 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ If you think you've found a bug or have a great idea for new functionality pleas ## How to provide feedback or ask for help -Use the [Discussions](https://github.com/github/gh-valet/discussions) tab in this repo for more general feedback or any questions/comments on this tooling. +Use the [Discussions](https://github.com/github/gh-actions-importer/discussions) tab in this repo for more general feedback or any questions/comments on this tooling. ## Configure your development environment @@ -23,19 +23,19 @@ To get started, you'll need [.NET Core 6.0](https://dotnet.microsoft.com/en-us/d The solution can be built using the following command: ```bash -$ dotnet build src/Valet.sln +$ dotnet build src/ActionsImporter.sln ``` Unit tests can be run using the following command: ```bash -$ dotnet test src/Valet.sln +$ dotnet test src/ActionsImporter.sln ``` Code linting can be run using the following command: ```bash -$ dotnet format src/Valet.sln +$ dotnet format src/ActionsImporter.sln ``` ## Submitting a Pull Request diff --git a/README.md b/README.md index da7aa504..54574ff6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# GitHub Valet CLI +# GitHub Actions Importer CLI -[![.github/workflows/ci.yml](https://github.com/github/gh-valet/actions/workflows/ci.yml/badge.svg)](https://github.com/github/gh-valet/actions/workflows/ci.yml) +[![.github/workflows/ci.yml](https://github.com/github/gh-actions-importer/actions/workflows/ci.yml/badge.svg)](https://github.com/github/gh-actions-importer/actions/workflows/ci.yml) Valet helps facilitate the migration of Azure DevOps, CircleCI, GitLab CI, Jenkins, and Travis CI pipelines to GitHub Actions. This repository provides functionality that extends the [GitHub CLI](https://cli.github.com/) to migrate pipelines to GitHub Actions using Valet. -> Valet is currently private and customers must be onboarded prior to using the `gh-valet` CLI extension. Please reach out to [GitHub Sales](https://github.com/enterprise/contact) to inquire about being granted access. +> Valet is currently private and customers must be onboarded prior to using the `gh-actions-importer` CLI extension. Please reach out to [GitHub Sales](https://github.com/enterprise/contact) to inquire about being granted access. -**Note**: You can request support by creating an issue [here](https://github.com/github/gh-valet/issues/new?assignees=&labels=help+wanted&template=support.yml&title=%5BSupport%5D%3A+). The Valet team responds to support requests Monday through Friday between the hours of 9AM EST and 5PM PST. +**Note**: You can request support by creating an issue [here](https://github.com/github/gh-actions-importer/issues/new?assignees=&labels=help+wanted&template=support.yml&title=%5BSupport%5D%3A+). The Valet team responds to support requests Monday through Friday between the hours of 9AM EST and 5PM PST. ## Supported platforms @@ -37,7 +37,7 @@ The following requirements must be met to be able to run Valet: Next, the Valet CLI extension can be installed via this command: ```bash -$ gh extension install github/gh-valet +$ gh extension install github/gh-actions-importer ``` To verify the extension is installed, run this command: diff --git a/src/.editorconfig b/src/.editorconfig index 59cf5ac1..5cce56eb 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -34,7 +34,7 @@ end_of_line = lf indent_size = 2 # The following applies to unit tests directory only. -[Valet.UnitTests/**.cs] +[ActionsImporter.UnitTests/**.cs] # CA1707: Identifiers should not contain underscores dotnet_diagnostic.CA1707.severity = none diff --git a/src/ActionsImporter.UnitTests/ActionsImporter.UnitTests.csproj b/src/ActionsImporter.UnitTests/ActionsImporter.UnitTests.csproj new file mode 100644 index 00000000..8a0710e7 --- /dev/null +++ b/src/ActionsImporter.UnitTests/ActionsImporter.UnitTests.csproj @@ -0,0 +1,25 @@ + + + + net6.0 + + false + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/src/Valet.UnitTests/AppTests.cs b/src/ActionsImporter.UnitTests/AppTests.cs similarity index 97% rename from src/Valet.UnitTests/AppTests.cs rename to src/ActionsImporter.UnitTests/AppTests.cs index b5225d91..35668b20 100644 --- a/src/Valet.UnitTests/AppTests.cs +++ b/src/ActionsImporter.UnitTests/AppTests.cs @@ -1,11 +1,11 @@ using System; using System.IO; using System.Threading.Tasks; +using ActionsImporter.Interfaces; using Moq; using NUnit.Framework; -using Valet.Interfaces; -namespace Valet.UnitTests; +namespace ActionsImporter.UnitTests; [TestFixture] public class AppTests diff --git a/src/Valet.UnitTests/Models/ManifestTests.cs b/src/ActionsImporter.UnitTests/Models/ManifestTests.cs similarity index 97% rename from src/Valet.UnitTests/Models/ManifestTests.cs rename to src/ActionsImporter.UnitTests/Models/ManifestTests.cs index 2e069dfd..4bce01a3 100644 --- a/src/Valet.UnitTests/Models/ManifestTests.cs +++ b/src/ActionsImporter.UnitTests/Models/ManifestTests.cs @@ -1,8 +1,8 @@ using System.Text.Json; +using ActionsImporter.Models.Docker; using NUnit.Framework; -using Valet.Models.Docker; -namespace Valet.UnitTests; +namespace ActionsImporter.UnitTests.Models; [TestFixture] public class ManifestTests diff --git a/src/Valet.UnitTests/Models/StringExtensionsTests.cs b/src/ActionsImporter.UnitTests/Models/StringExtensionsTests.cs similarity index 76% rename from src/Valet.UnitTests/Models/StringExtensionsTests.cs rename to src/ActionsImporter.UnitTests/Models/StringExtensionsTests.cs index aeaf942f..049143c2 100644 --- a/src/Valet.UnitTests/Models/StringExtensionsTests.cs +++ b/src/ActionsImporter.UnitTests/Models/StringExtensionsTests.cs @@ -1,7 +1,7 @@ -using NUnit.Framework; -using Valet.Models; +using ActionsImporter.Models; +using NUnit.Framework; -namespace Valet.UnitTests.Models; +namespace ActionsImporter.UnitTests.Models; [TestFixture] public class StringExtensionsTests diff --git a/src/Valet.UnitTests/Models/VariableTests.cs b/src/ActionsImporter.UnitTests/Models/VariableTests.cs similarity index 93% rename from src/Valet.UnitTests/Models/VariableTests.cs rename to src/ActionsImporter.UnitTests/Models/VariableTests.cs index 74b5b244..bce14634 100644 --- a/src/Valet.UnitTests/Models/VariableTests.cs +++ b/src/ActionsImporter.UnitTests/Models/VariableTests.cs @@ -1,7 +1,7 @@ -using NUnit.Framework; -using Valet.Models; +using ActionsImporter.Models; +using NUnit.Framework; -namespace Valet.UnitTests.Models; +namespace ActionsImporter.UnitTests.Models; [TestFixture] public class VariableTests diff --git a/src/Valet.UnitTests/Services/ConfigurationServiceTests.cs b/src/ActionsImporter.UnitTests/Services/ConfigurationServiceTests.cs similarity index 92% rename from src/Valet.UnitTests/Services/ConfigurationServiceTests.cs rename to src/ActionsImporter.UnitTests/Services/ConfigurationServiceTests.cs index 15a25857..7413a0c5 100644 --- a/src/Valet.UnitTests/Services/ConfigurationServiceTests.cs +++ b/src/ActionsImporter.UnitTests/Services/ConfigurationServiceTests.cs @@ -2,11 +2,11 @@ using System.Collections.Immutable; using System.IO; using System.Threading.Tasks; +using ActionsImporter.Interfaces; +using ActionsImporter.Services; using NUnit.Framework; -using Valet.Interfaces; -using Valet.Services; -namespace Valet.UnitTests.Services; +namespace ActionsImporter.UnitTests.Services; [TestFixture] public class ConfigurationServiceTests @@ -68,7 +68,7 @@ public async Task ReadCurrentVariablesAsync_FileDoesNotExist_ReturnsEmptyVariabl public async Task ReadCurrentVariablesAsync_FileExists_ReturnsVariables() { // Arrange - var filePath = Path.Combine(Path.GetTempPath(), "gh-valet.tests", ".env.local"); + var filePath = Path.Combine(Path.GetTempPath(), "gh-actions-importer.tests", ".env.local"); var directory = Path.GetDirectoryName(filePath)!; var contents = @" diff --git a/src/Valet.UnitTests/Services/DockerServiceTests.cs b/src/ActionsImporter.UnitTests/Services/DockerServiceTests.cs similarity index 99% rename from src/Valet.UnitTests/Services/DockerServiceTests.cs rename to src/ActionsImporter.UnitTests/Services/DockerServiceTests.cs index bf139bcd..2f7e9014 100644 --- a/src/Valet.UnitTests/Services/DockerServiceTests.cs +++ b/src/ActionsImporter.UnitTests/Services/DockerServiceTests.cs @@ -2,12 +2,12 @@ using System.Collections.Generic; using System.IO; using System.Threading.Tasks; +using ActionsImporter.Interfaces; +using ActionsImporter.Services; using Moq; using NUnit.Framework; -using Valet.Interfaces; -using Valet.Services; -namespace Valet.UnitTests.Services; +namespace ActionsImporter.UnitTests.Services; [TestFixture] public class DockerServiceTests diff --git a/src/Valet.sln b/src/ActionsImporter.sln similarity index 74% rename from src/Valet.sln rename to src/ActionsImporter.sln index 739da9a0..6cd7a3c7 100644 --- a/src/Valet.sln +++ b/src/ActionsImporter.sln @@ -1,8 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Valet", "Valet\Valet.csproj", "{2BDDC277-D122-4D92-BE5B-B471661AF6ED}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ActionsImporter", "ActionsImporter\ActionsImporter.csproj", "{2BDDC277-D122-4D92-BE5B-B471661AF6ED}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Valet.UnitTests", "Valet.UnitTests\Valet.UnitTests.csproj", "{5EA9047C-5831-421C-926E-87C0BFFE7678}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ActionsImporter.UnitTests", "ActionsImporter.UnitTests\ActionsImporter.UnitTests.csproj", "{5EA9047C-5831-421C-926E-87C0BFFE7678}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/src/Valet.sln.DotSettings b/src/ActionsImporter.sln.DotSettings similarity index 100% rename from src/Valet.sln.DotSettings rename to src/ActionsImporter.sln.DotSettings diff --git a/src/Valet/Valet.csproj b/src/ActionsImporter/ActionsImporter.csproj similarity index 92% rename from src/Valet/Valet.csproj rename to src/ActionsImporter/ActionsImporter.csproj index 97320b72..d770fce1 100644 --- a/src/Valet/Valet.csproj +++ b/src/ActionsImporter/ActionsImporter.csproj @@ -5,7 +5,7 @@ net6.0 win10-x64;osx-x64;linux-x64 enable - gh-valet + gh-actions-importer diff --git a/src/Valet/App.cs b/src/ActionsImporter/App.cs similarity index 96% rename from src/Valet/App.cs rename to src/ActionsImporter/App.cs index cb68dc03..6160ab61 100644 --- a/src/Valet/App.cs +++ b/src/ActionsImporter/App.cs @@ -1,7 +1,7 @@ -using Valet.Interfaces; -using Valet.Models; +using ActionsImporter.Interfaces; +using ActionsImporter.Models; -namespace Valet; +namespace ActionsImporter; public class App { @@ -72,7 +72,7 @@ public async Task GetVersionAsync() var formattedGhVersion = ghVersion.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).FirstOrDefault(); var formattedGhValetVersion = ghValetVersion.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries) - .FirstOrDefault(x => x.Contains("github/gh-valet", StringComparison.Ordinal)); + .FirstOrDefault(x => x.Contains("github/gh-actions-importer", StringComparison.Ordinal)); var formattedValetVersion = valetVersion.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).FirstOrDefault() ?? "unknown"; Console.WriteLine(formattedGhVersion); diff --git a/src/Valet/Commands/Audit.cs b/src/ActionsImporter/Commands/Audit.cs similarity index 96% rename from src/Valet/Commands/Audit.cs rename to src/ActionsImporter/Commands/Audit.cs index fa1fd712..65926fcb 100644 --- a/src/Valet/Commands/Audit.cs +++ b/src/ActionsImporter/Commands/Audit.cs @@ -1,5 +1,6 @@ using System.CommandLine; -namespace Valet.Commands; + +namespace ActionsImporter.Commands; public class Audit : BaseCommand { diff --git a/src/Valet/Commands/AzureDevOps/Audit.cs b/src/ActionsImporter/Commands/AzureDevOps/Audit.cs similarity index 91% rename from src/Valet/Commands/AzureDevOps/Audit.cs rename to src/ActionsImporter/Commands/AzureDevOps/Audit.cs index 94259719..8155683d 100644 --- a/src/Valet/Commands/AzureDevOps/Audit.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/Audit.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.AzureDevOps; +namespace ActionsImporter.Commands.AzureDevOps; public class Audit : ContainerCommand { diff --git a/src/Valet/Commands/AzureDevOps/BuildPipeline/DryRun.cs b/src/ActionsImporter/Commands/AzureDevOps/BuildPipeline/DryRun.cs similarity index 86% rename from src/Valet/Commands/AzureDevOps/BuildPipeline/DryRun.cs rename to src/ActionsImporter/Commands/AzureDevOps/BuildPipeline/DryRun.cs index 696835ca..995a1f5a 100644 --- a/src/Valet/Commands/AzureDevOps/BuildPipeline/DryRun.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/BuildPipeline/DryRun.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.AzureDevOps.BuildPipeline; +namespace ActionsImporter.Commands.AzureDevOps.BuildPipeline; public class DryRun : ContainerCommand { diff --git a/src/Valet/Commands/AzureDevOps/BuildPipeline/Migrate.cs b/src/ActionsImporter/Commands/AzureDevOps/BuildPipeline/Migrate.cs similarity index 86% rename from src/Valet/Commands/AzureDevOps/BuildPipeline/Migrate.cs rename to src/ActionsImporter/Commands/AzureDevOps/BuildPipeline/Migrate.cs index d47a9f7b..f520fc9c 100644 --- a/src/Valet/Commands/AzureDevOps/BuildPipeline/Migrate.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/BuildPipeline/Migrate.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.AzureDevOps.BuildPipeline; +namespace ActionsImporter.Commands.AzureDevOps.BuildPipeline; public class Migrate : ContainerCommand { diff --git a/src/Valet/Commands/AzureDevOps/Common.cs b/src/ActionsImporter/Commands/AzureDevOps/Common.cs similarity index 95% rename from src/Valet/Commands/AzureDevOps/Common.cs rename to src/ActionsImporter/Commands/AzureDevOps/Common.cs index 87f5b0be..a0f3c27e 100644 --- a/src/Valet/Commands/AzureDevOps/Common.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/Common.cs @@ -1,6 +1,6 @@ using System.CommandLine; -namespace Valet.Commands.AzureDevOps; +namespace ActionsImporter.Commands.AzureDevOps; public static class Common { diff --git a/src/Valet/Commands/AzureDevOps/DryRun.cs b/src/ActionsImporter/Commands/AzureDevOps/DryRun.cs similarity index 95% rename from src/Valet/Commands/AzureDevOps/DryRun.cs rename to src/ActionsImporter/Commands/AzureDevOps/DryRun.cs index aa6e32c2..c007637b 100644 --- a/src/Valet/Commands/AzureDevOps/DryRun.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/DryRun.cs @@ -1,6 +1,6 @@ using System.CommandLine; -namespace Valet.Commands.AzureDevOps; +namespace ActionsImporter.Commands.AzureDevOps; public class DryRun : BaseCommand { diff --git a/src/Valet/Commands/AzureDevOps/Forecast.cs b/src/ActionsImporter/Commands/AzureDevOps/Forecast.cs similarity index 94% rename from src/Valet/Commands/AzureDevOps/Forecast.cs rename to src/ActionsImporter/Commands/AzureDevOps/Forecast.cs index ef460da1..3660fbf7 100644 --- a/src/Valet/Commands/AzureDevOps/Forecast.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/Forecast.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.AzureDevOps; +namespace ActionsImporter.Commands.AzureDevOps; public class Forecast : ContainerCommand { diff --git a/src/Valet/Commands/AzureDevOps/Migrate.cs b/src/ActionsImporter/Commands/AzureDevOps/Migrate.cs similarity index 95% rename from src/Valet/Commands/AzureDevOps/Migrate.cs rename to src/ActionsImporter/Commands/AzureDevOps/Migrate.cs index d033409d..57692a20 100644 --- a/src/Valet/Commands/AzureDevOps/Migrate.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/Migrate.cs @@ -1,6 +1,6 @@ using System.CommandLine; -namespace Valet.Commands.AzureDevOps; +namespace ActionsImporter.Commands.AzureDevOps; public class Migrate : BaseCommand { diff --git a/src/Valet/Commands/AzureDevOps/ReleasePipeline/DryRun.cs b/src/ActionsImporter/Commands/AzureDevOps/ReleasePipeline/DryRun.cs similarity index 85% rename from src/Valet/Commands/AzureDevOps/ReleasePipeline/DryRun.cs rename to src/ActionsImporter/Commands/AzureDevOps/ReleasePipeline/DryRun.cs index 577cc823..03c69efb 100644 --- a/src/Valet/Commands/AzureDevOps/ReleasePipeline/DryRun.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/ReleasePipeline/DryRun.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.AzureDevOps.ReleasePipeline; +namespace ActionsImporter.Commands.AzureDevOps.ReleasePipeline; public class DryRun : ContainerCommand { diff --git a/src/Valet/Commands/AzureDevOps/ReleasePipeline/Migrate.cs b/src/ActionsImporter/Commands/AzureDevOps/ReleasePipeline/Migrate.cs similarity index 85% rename from src/Valet/Commands/AzureDevOps/ReleasePipeline/Migrate.cs rename to src/ActionsImporter/Commands/AzureDevOps/ReleasePipeline/Migrate.cs index 6a0cd299..515231fc 100644 --- a/src/Valet/Commands/AzureDevOps/ReleasePipeline/Migrate.cs +++ b/src/ActionsImporter/Commands/AzureDevOps/ReleasePipeline/Migrate.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.AzureDevOps.ReleasePipeline; +namespace ActionsImporter.Commands.AzureDevOps.ReleasePipeline; public class Migrate : ContainerCommand { diff --git a/src/Valet/Commands/BaseCommand.cs b/src/ActionsImporter/Commands/BaseCommand.cs similarity index 90% rename from src/Valet/Commands/BaseCommand.cs rename to src/ActionsImporter/Commands/BaseCommand.cs index 1decd7bb..e8b20917 100644 --- a/src/Valet/Commands/BaseCommand.cs +++ b/src/ActionsImporter/Commands/BaseCommand.cs @@ -1,6 +1,6 @@ using System.CommandLine; -namespace Valet.Commands; +namespace ActionsImporter.Commands; public abstract class BaseCommand { diff --git a/src/Valet/Commands/Circle/Audit.cs b/src/ActionsImporter/Commands/Circle/Audit.cs similarity index 96% rename from src/Valet/Commands/Circle/Audit.cs rename to src/ActionsImporter/Commands/Circle/Audit.cs index da73ca18..05404183 100644 --- a/src/Valet/Commands/Circle/Audit.cs +++ b/src/ActionsImporter/Commands/Circle/Audit.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Circle; +namespace ActionsImporter.Commands.Circle; public class Audit : ContainerCommand { diff --git a/src/Valet/Commands/Circle/Common.cs b/src/ActionsImporter/Commands/Circle/Common.cs similarity index 97% rename from src/Valet/Commands/Circle/Common.cs rename to src/ActionsImporter/Commands/Circle/Common.cs index 746ece88..4f6aa45d 100644 --- a/src/Valet/Commands/Circle/Common.cs +++ b/src/ActionsImporter/Commands/Circle/Common.cs @@ -1,6 +1,6 @@ using System.CommandLine; -namespace Valet.Commands.Circle; +namespace ActionsImporter.Commands.Circle; public static class Common { diff --git a/src/Valet/Commands/Circle/DryRun.cs b/src/ActionsImporter/Commands/Circle/DryRun.cs similarity index 94% rename from src/Valet/Commands/Circle/DryRun.cs rename to src/ActionsImporter/Commands/Circle/DryRun.cs index 52b35d5b..efd28876 100644 --- a/src/Valet/Commands/Circle/DryRun.cs +++ b/src/ActionsImporter/Commands/Circle/DryRun.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Circle; +namespace ActionsImporter.Commands.Circle; public class DryRun : ContainerCommand { diff --git a/src/Valet/Commands/Circle/Forecast.cs b/src/ActionsImporter/Commands/Circle/Forecast.cs similarity index 95% rename from src/Valet/Commands/Circle/Forecast.cs rename to src/ActionsImporter/Commands/Circle/Forecast.cs index 47862a48..02a18769 100644 --- a/src/Valet/Commands/Circle/Forecast.cs +++ b/src/ActionsImporter/Commands/Circle/Forecast.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Circle; +namespace ActionsImporter.Commands.Circle; public class Forecast : ContainerCommand { diff --git a/src/Valet/Commands/Circle/Migrate.cs b/src/ActionsImporter/Commands/Circle/Migrate.cs similarity index 94% rename from src/Valet/Commands/Circle/Migrate.cs rename to src/ActionsImporter/Commands/Circle/Migrate.cs index 5fccf35f..c88ca96b 100644 --- a/src/Valet/Commands/Circle/Migrate.cs +++ b/src/ActionsImporter/Commands/Circle/Migrate.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Circle; +namespace ActionsImporter.Commands.Circle; public class Migrate : ContainerCommand { diff --git a/src/Valet/Commands/Common.cs b/src/ActionsImporter/Commands/Common.cs similarity index 98% rename from src/Valet/Commands/Common.cs rename to src/ActionsImporter/Commands/Common.cs index 78898ced..a51afd02 100644 --- a/src/Valet/Commands/Common.cs +++ b/src/ActionsImporter/Commands/Common.cs @@ -1,7 +1,7 @@ using System.CommandLine; -using Valet.Models; +using ActionsImporter.Models; -namespace Valet.Commands; +namespace ActionsImporter.Commands; public static class Common { diff --git a/src/Valet/Commands/Configure.cs b/src/ActionsImporter/Commands/Configure.cs similarity index 94% rename from src/Valet/Commands/Configure.cs rename to src/ActionsImporter/Commands/Configure.cs index b6e8982a..fe110f85 100644 --- a/src/Valet/Commands/Configure.cs +++ b/src/ActionsImporter/Commands/Configure.cs @@ -1,7 +1,7 @@ using System.CommandLine; using System.CommandLine.NamingConventionBinder; -namespace Valet.Commands; +namespace ActionsImporter.Commands; public class Configure : BaseCommand { diff --git a/src/Valet/Commands/ContainerCommand.cs b/src/ActionsImporter/Commands/ContainerCommand.cs similarity index 90% rename from src/Valet/Commands/ContainerCommand.cs rename to src/ActionsImporter/Commands/ContainerCommand.cs index 039310c2..86a86fd6 100644 --- a/src/Valet/Commands/ContainerCommand.cs +++ b/src/ActionsImporter/Commands/ContainerCommand.cs @@ -1,8 +1,8 @@ using System.Collections.Immutable; using System.CommandLine; -using Valet.Handlers; +using ActionsImporter.Handlers; -namespace Valet.Commands; +namespace ActionsImporter.Commands; public abstract class ContainerCommand : BaseCommand { diff --git a/src/Valet/Commands/DryRun.cs b/src/ActionsImporter/Commands/DryRun.cs similarity index 95% rename from src/Valet/Commands/DryRun.cs rename to src/ActionsImporter/Commands/DryRun.cs index 85128905..daa015e2 100644 --- a/src/Valet/Commands/DryRun.cs +++ b/src/ActionsImporter/Commands/DryRun.cs @@ -1,5 +1,6 @@ using System.CommandLine; -namespace Valet.Commands; + +namespace ActionsImporter.Commands; public class DryRun : BaseCommand { diff --git a/src/Valet/Commands/Forecast.cs b/src/ActionsImporter/Commands/Forecast.cs similarity index 98% rename from src/Valet/Commands/Forecast.cs rename to src/ActionsImporter/Commands/Forecast.cs index a7ee8a88..843b5844 100644 --- a/src/Valet/Commands/Forecast.cs +++ b/src/ActionsImporter/Commands/Forecast.cs @@ -1,6 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands; + +namespace ActionsImporter.Commands; public class Forecast : ContainerCommand { diff --git a/src/Valet/Commands/GitHub/Forecast.cs b/src/ActionsImporter/Commands/GitHub/Forecast.cs similarity index 97% rename from src/Valet/Commands/GitHub/Forecast.cs rename to src/ActionsImporter/Commands/GitHub/Forecast.cs index 0bbcc712..452bc47f 100644 --- a/src/Valet/Commands/GitHub/Forecast.cs +++ b/src/ActionsImporter/Commands/GitHub/Forecast.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.GitHub; +namespace ActionsImporter.Commands.GitHub; public class Forecast : ContainerCommand { diff --git a/src/Valet/Commands/GitLab/Audit.cs b/src/ActionsImporter/Commands/GitLab/Audit.cs similarity index 94% rename from src/Valet/Commands/GitLab/Audit.cs rename to src/ActionsImporter/Commands/GitLab/Audit.cs index 799a2ef1..129a76d1 100644 --- a/src/Valet/Commands/GitLab/Audit.cs +++ b/src/ActionsImporter/Commands/GitLab/Audit.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.GitLab; +namespace ActionsImporter.Commands.GitLab; public class Audit : ContainerCommand { diff --git a/src/Valet/Commands/GitLab/Common.cs b/src/ActionsImporter/Commands/GitLab/Common.cs similarity index 96% rename from src/Valet/Commands/GitLab/Common.cs rename to src/ActionsImporter/Commands/GitLab/Common.cs index c69589fc..e6a17ba2 100644 --- a/src/Valet/Commands/GitLab/Common.cs +++ b/src/ActionsImporter/Commands/GitLab/Common.cs @@ -1,6 +1,6 @@ using System.CommandLine; -namespace Valet.Commands.GitLab; +namespace ActionsImporter.Commands.GitLab; public static class Common { diff --git a/src/Valet/Commands/GitLab/DryRun.cs b/src/ActionsImporter/Commands/GitLab/DryRun.cs similarity index 93% rename from src/Valet/Commands/GitLab/DryRun.cs rename to src/ActionsImporter/Commands/GitLab/DryRun.cs index c5d1a9be..508a553e 100644 --- a/src/Valet/Commands/GitLab/DryRun.cs +++ b/src/ActionsImporter/Commands/GitLab/DryRun.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.GitLab; +namespace ActionsImporter.Commands.GitLab; public class DryRun : ContainerCommand { diff --git a/src/Valet/Commands/GitLab/Forecast.cs b/src/ActionsImporter/Commands/GitLab/Forecast.cs similarity index 94% rename from src/Valet/Commands/GitLab/Forecast.cs rename to src/ActionsImporter/Commands/GitLab/Forecast.cs index 35da6f8f..1865c0be 100644 --- a/src/Valet/Commands/GitLab/Forecast.cs +++ b/src/ActionsImporter/Commands/GitLab/Forecast.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.GitLab; +namespace ActionsImporter.Commands.GitLab; public class Forecast : ContainerCommand { diff --git a/src/Valet/Commands/GitLab/Migrate.cs b/src/ActionsImporter/Commands/GitLab/Migrate.cs similarity index 93% rename from src/Valet/Commands/GitLab/Migrate.cs rename to src/ActionsImporter/Commands/GitLab/Migrate.cs index dd9d69b4..15ad49cb 100644 --- a/src/Valet/Commands/GitLab/Migrate.cs +++ b/src/ActionsImporter/Commands/GitLab/Migrate.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.GitLab; +namespace ActionsImporter.Commands.GitLab; public class Migrate : ContainerCommand { diff --git a/src/Valet/Commands/Jenkins/Audit.cs b/src/ActionsImporter/Commands/Jenkins/Audit.cs similarity index 94% rename from src/Valet/Commands/Jenkins/Audit.cs rename to src/ActionsImporter/Commands/Jenkins/Audit.cs index 1ef35673..3ae39471 100644 --- a/src/Valet/Commands/Jenkins/Audit.cs +++ b/src/ActionsImporter/Commands/Jenkins/Audit.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Jenkins; +namespace ActionsImporter.Commands.Jenkins; public class Audit : ContainerCommand { diff --git a/src/Valet/Commands/Jenkins/Common.cs b/src/ActionsImporter/Commands/Jenkins/Common.cs similarity index 96% rename from src/Valet/Commands/Jenkins/Common.cs rename to src/ActionsImporter/Commands/Jenkins/Common.cs index d6eceab2..bb571b72 100644 --- a/src/Valet/Commands/Jenkins/Common.cs +++ b/src/ActionsImporter/Commands/Jenkins/Common.cs @@ -1,6 +1,6 @@ using System.CommandLine; -namespace Valet.Commands.Jenkins; +namespace ActionsImporter.Commands.Jenkins; public static class Common { diff --git a/src/Valet/Commands/Jenkins/DryRun.cs b/src/ActionsImporter/Commands/Jenkins/DryRun.cs similarity index 93% rename from src/Valet/Commands/Jenkins/DryRun.cs rename to src/ActionsImporter/Commands/Jenkins/DryRun.cs index af943a19..772bc213 100644 --- a/src/Valet/Commands/Jenkins/DryRun.cs +++ b/src/ActionsImporter/Commands/Jenkins/DryRun.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Jenkins; +namespace ActionsImporter.Commands.Jenkins; public class DryRun : ContainerCommand { diff --git a/src/Valet/Commands/Jenkins/Forecast.cs b/src/ActionsImporter/Commands/Jenkins/Forecast.cs similarity index 96% rename from src/Valet/Commands/Jenkins/Forecast.cs rename to src/ActionsImporter/Commands/Jenkins/Forecast.cs index a1023d0b..65a06cab 100644 --- a/src/Valet/Commands/Jenkins/Forecast.cs +++ b/src/ActionsImporter/Commands/Jenkins/Forecast.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Jenkins; +namespace ActionsImporter.Commands.Jenkins; public class Forecast : ContainerCommand { diff --git a/src/Valet/Commands/Jenkins/Migrate.cs b/src/ActionsImporter/Commands/Jenkins/Migrate.cs similarity index 93% rename from src/Valet/Commands/Jenkins/Migrate.cs rename to src/ActionsImporter/Commands/Jenkins/Migrate.cs index c271af6e..5d07622b 100644 --- a/src/Valet/Commands/Jenkins/Migrate.cs +++ b/src/ActionsImporter/Commands/Jenkins/Migrate.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Jenkins; +namespace ActionsImporter.Commands.Jenkins; public class Migrate : ContainerCommand { diff --git a/src/Valet/Commands/Migrate.cs b/src/ActionsImporter/Commands/Migrate.cs similarity index 97% rename from src/Valet/Commands/Migrate.cs rename to src/ActionsImporter/Commands/Migrate.cs index c6afceda..88ac97fa 100644 --- a/src/Valet/Commands/Migrate.cs +++ b/src/ActionsImporter/Commands/Migrate.cs @@ -1,5 +1,6 @@ using System.CommandLine; -namespace Valet.Commands; + +namespace ActionsImporter.Commands; public class Migrate : BaseCommand { diff --git a/src/Valet/Commands/Travis/Audit.cs b/src/ActionsImporter/Commands/Travis/Audit.cs similarity index 96% rename from src/Valet/Commands/Travis/Audit.cs rename to src/ActionsImporter/Commands/Travis/Audit.cs index 579e62a4..028b17a5 100644 --- a/src/Valet/Commands/Travis/Audit.cs +++ b/src/ActionsImporter/Commands/Travis/Audit.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Travis; +namespace ActionsImporter.Commands.Travis; public class Audit : ContainerCommand { diff --git a/src/Valet/Commands/Travis/Common.cs b/src/ActionsImporter/Commands/Travis/Common.cs similarity index 97% rename from src/Valet/Commands/Travis/Common.cs rename to src/ActionsImporter/Commands/Travis/Common.cs index 53c3baf4..fd4744f0 100644 --- a/src/Valet/Commands/Travis/Common.cs +++ b/src/ActionsImporter/Commands/Travis/Common.cs @@ -1,6 +1,6 @@ using System.CommandLine; -namespace Valet.Commands.Travis; +namespace ActionsImporter.Commands.Travis; public static class Common { diff --git a/src/Valet/Commands/Travis/DryRun.cs b/src/ActionsImporter/Commands/Travis/DryRun.cs similarity index 93% rename from src/Valet/Commands/Travis/DryRun.cs rename to src/ActionsImporter/Commands/Travis/DryRun.cs index 92e68788..15cc4dbd 100644 --- a/src/Valet/Commands/Travis/DryRun.cs +++ b/src/ActionsImporter/Commands/Travis/DryRun.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Travis; +namespace ActionsImporter.Commands.Travis; public class DryRun : ContainerCommand { diff --git a/src/Valet/Commands/Travis/Forecast.cs b/src/ActionsImporter/Commands/Travis/Forecast.cs similarity index 94% rename from src/Valet/Commands/Travis/Forecast.cs rename to src/ActionsImporter/Commands/Travis/Forecast.cs index e044a7e5..8e682dff 100644 --- a/src/Valet/Commands/Travis/Forecast.cs +++ b/src/ActionsImporter/Commands/Travis/Forecast.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Travis; +namespace ActionsImporter.Commands.Travis; public class Forecast : ContainerCommand { diff --git a/src/Valet/Commands/Travis/Migrate.cs b/src/ActionsImporter/Commands/Travis/Migrate.cs similarity index 94% rename from src/Valet/Commands/Travis/Migrate.cs rename to src/ActionsImporter/Commands/Travis/Migrate.cs index bb200ebd..1e569a56 100644 --- a/src/Valet/Commands/Travis/Migrate.cs +++ b/src/ActionsImporter/Commands/Travis/Migrate.cs @@ -1,7 +1,7 @@ using System.Collections.Immutable; using System.CommandLine; -namespace Valet.Commands.Travis; +namespace ActionsImporter.Commands.Travis; public class Migrate : ContainerCommand { diff --git a/src/Valet/Commands/Update.cs b/src/ActionsImporter/Commands/Update.cs similarity index 97% rename from src/Valet/Commands/Update.cs rename to src/ActionsImporter/Commands/Update.cs index 375a70e5..e74bd587 100644 --- a/src/Valet/Commands/Update.cs +++ b/src/ActionsImporter/Commands/Update.cs @@ -1,7 +1,7 @@ using System.CommandLine; using System.CommandLine.NamingConventionBinder; -namespace Valet.Commands; +namespace ActionsImporter.Commands; public class Update : BaseCommand { diff --git a/src/Valet/Commands/Version.cs b/src/ActionsImporter/Commands/Version.cs similarity index 93% rename from src/Valet/Commands/Version.cs rename to src/ActionsImporter/Commands/Version.cs index bf63c60c..199c7bb4 100644 --- a/src/Valet/Commands/Version.cs +++ b/src/ActionsImporter/Commands/Version.cs @@ -1,7 +1,7 @@ using System.CommandLine; using System.CommandLine.NamingConventionBinder; -namespace Valet.Commands; +namespace ActionsImporter.Commands; public class Version : BaseCommand { diff --git a/src/Valet/Constants.cs b/src/ActionsImporter/Constants.cs similarity index 97% rename from src/Valet/Constants.cs rename to src/ActionsImporter/Constants.cs index 46bbf019..60ab92ce 100644 --- a/src/Valet/Constants.cs +++ b/src/ActionsImporter/Constants.cs @@ -1,6 +1,6 @@ -using Valet.Models; +using ActionsImporter.Models; -namespace Valet; +namespace ActionsImporter; public static class Constants { diff --git a/src/Valet/Handlers/ContainerHandler.cs b/src/ActionsImporter/Handlers/ContainerHandler.cs similarity index 85% rename from src/Valet/Handlers/ContainerHandler.cs rename to src/ActionsImporter/Handlers/ContainerHandler.cs index 1b56c24c..03314c9e 100644 --- a/src/Valet/Handlers/ContainerHandler.cs +++ b/src/ActionsImporter/Handlers/ContainerHandler.cs @@ -1,4 +1,4 @@ -namespace Valet.Handlers; +namespace ActionsImporter.Handlers; public class ContainerHandler { diff --git a/src/Valet/Interfaces/IConfigurationService.cs b/src/ActionsImporter/Interfaces/IConfigurationService.cs similarity index 94% rename from src/Valet/Interfaces/IConfigurationService.cs rename to src/ActionsImporter/Interfaces/IConfigurationService.cs index f8d3ebe9..009975e9 100644 --- a/src/Valet/Interfaces/IConfigurationService.cs +++ b/src/ActionsImporter/Interfaces/IConfigurationService.cs @@ -1,6 +1,6 @@ using System.Collections.Immutable; -namespace Valet.Interfaces; +namespace ActionsImporter.Interfaces; public interface IConfigurationService { diff --git a/src/Valet/Interfaces/IDockerService.cs b/src/ActionsImporter/Interfaces/IDockerService.cs similarity index 93% rename from src/Valet/Interfaces/IDockerService.cs rename to src/ActionsImporter/Interfaces/IDockerService.cs index f48d512b..e4fb0528 100644 --- a/src/Valet/Interfaces/IDockerService.cs +++ b/src/ActionsImporter/Interfaces/IDockerService.cs @@ -1,4 +1,4 @@ -namespace Valet.Interfaces; +namespace ActionsImporter.Interfaces; public interface IDockerService { diff --git a/src/Valet/Interfaces/IProcessService.cs b/src/ActionsImporter/Interfaces/IProcessService.cs similarity index 92% rename from src/Valet/Interfaces/IProcessService.cs rename to src/ActionsImporter/Interfaces/IProcessService.cs index 56decd60..bdae8ebf 100644 --- a/src/Valet/Interfaces/IProcessService.cs +++ b/src/ActionsImporter/Interfaces/IProcessService.cs @@ -1,4 +1,4 @@ -namespace Valet.Interfaces; +namespace ActionsImporter.Interfaces; public interface IProcessService { diff --git a/src/Valet/Models/Docker/Manifest.cs b/src/ActionsImporter/Models/Docker/Manifest.cs similarity index 92% rename from src/Valet/Models/Docker/Manifest.cs rename to src/ActionsImporter/Models/Docker/Manifest.cs index 7b06d359..4612ac12 100644 --- a/src/Valet/Models/Docker/Manifest.cs +++ b/src/ActionsImporter/Models/Docker/Manifest.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Valet.Models.Docker; +namespace ActionsImporter.Models.Docker; public class Manifest { diff --git a/src/Valet/Models/Docker/ManifestConfig.cs b/src/ActionsImporter/Models/Docker/ManifestConfig.cs similarity index 87% rename from src/Valet/Models/Docker/ManifestConfig.cs rename to src/ActionsImporter/Models/Docker/ManifestConfig.cs index c690d69c..c29840d3 100644 --- a/src/Valet/Models/Docker/ManifestConfig.cs +++ b/src/ActionsImporter/Models/Docker/ManifestConfig.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace Valet.Models.Docker; +namespace ActionsImporter.Models.Docker; public class ManifestConfig { diff --git a/src/Valet/Models/Provider.cs b/src/ActionsImporter/Models/Provider.cs similarity index 74% rename from src/Valet/Models/Provider.cs rename to src/ActionsImporter/Models/Provider.cs index 683f757b..c7c19c61 100644 --- a/src/Valet/Models/Provider.cs +++ b/src/ActionsImporter/Models/Provider.cs @@ -1,4 +1,4 @@ -namespace Valet.Models; +namespace ActionsImporter.Models; public enum Provider { diff --git a/src/Valet/Models/StringExtensions.cs b/src/ActionsImporter/Models/StringExtensions.cs similarity index 86% rename from src/Valet/Models/StringExtensions.cs rename to src/ActionsImporter/Models/StringExtensions.cs index 5af260e7..6d0f6ebc 100644 --- a/src/Valet/Models/StringExtensions.cs +++ b/src/ActionsImporter/Models/StringExtensions.cs @@ -1,4 +1,4 @@ -namespace Valet.Models; +namespace ActionsImporter.Models; public static class StringExtensions { diff --git a/src/Valet/Models/Variable.cs b/src/ActionsImporter/Models/Variable.cs similarity index 96% rename from src/Valet/Models/Variable.cs rename to src/ActionsImporter/Models/Variable.cs index 4e7af7e8..d3bdd001 100644 --- a/src/Valet/Models/Variable.cs +++ b/src/ActionsImporter/Models/Variable.cs @@ -1,4 +1,4 @@ -namespace Valet.Models; +namespace ActionsImporter.Models; public readonly struct Variable { diff --git a/src/Valet/Models/YamlVerbosity.cs b/src/ActionsImporter/Models/YamlVerbosity.cs similarity index 63% rename from src/Valet/Models/YamlVerbosity.cs rename to src/ActionsImporter/Models/YamlVerbosity.cs index 03424e70..dec8d37c 100644 --- a/src/Valet/Models/YamlVerbosity.cs +++ b/src/ActionsImporter/Models/YamlVerbosity.cs @@ -1,4 +1,4 @@ -namespace Valet.Models; +namespace ActionsImporter.Models; public enum YamlVerbosity { diff --git a/src/Valet/Program.cs b/src/ActionsImporter/Program.cs similarity index 90% rename from src/Valet/Program.cs rename to src/ActionsImporter/Program.cs index e6bddd93..96a21b57 100644 --- a/src/Valet/Program.cs +++ b/src/ActionsImporter/Program.cs @@ -2,10 +2,10 @@ using System.CommandLine.Builder; using System.CommandLine.Help; using System.CommandLine.Parsing; -using Valet; -using Valet.Commands; -using Valet.Services; -using Version = Valet.Commands.Version; +using ActionsImporter; +using ActionsImporter.Commands; +using ActionsImporter.Services; +using Version = ActionsImporter.Commands.Version; var processService = new ProcessService(); diff --git a/src/Valet/Services/ConfigurationService.cs b/src/ActionsImporter/Services/ConfigurationService.cs similarity index 97% rename from src/Valet/Services/ConfigurationService.cs rename to src/ActionsImporter/Services/ConfigurationService.cs index 3837a4bd..74fd0d97 100644 --- a/src/Valet/Services/ConfigurationService.cs +++ b/src/ActionsImporter/Services/ConfigurationService.cs @@ -1,8 +1,8 @@ using System.Collections.Immutable; +using ActionsImporter.Interfaces; using Sharprompt; -using Valet.Interfaces; -namespace Valet.Services; +namespace ActionsImporter.Services; public class ConfigurationService : IConfigurationService { diff --git a/src/Valet/Services/DockerService.cs b/src/ActionsImporter/Services/DockerService.cs similarity index 97% rename from src/Valet/Services/DockerService.cs rename to src/ActionsImporter/Services/DockerService.cs index 0defb907..4d646d5a 100644 --- a/src/Valet/Services/DockerService.cs +++ b/src/ActionsImporter/Services/DockerService.cs @@ -1,8 +1,8 @@ using System.Text.Json; -using Valet.Interfaces; -using Valet.Models.Docker; +using ActionsImporter.Interfaces; +using ActionsImporter.Models.Docker; -namespace Valet.Services; +namespace ActionsImporter.Services; public class DockerService : IDockerService { diff --git a/src/Valet/Services/ProcessService.cs b/src/ActionsImporter/Services/ProcessService.cs similarity index 96% rename from src/Valet/Services/ProcessService.cs rename to src/ActionsImporter/Services/ProcessService.cs index 383b8fdc..1631f73a 100644 --- a/src/Valet/Services/ProcessService.cs +++ b/src/ActionsImporter/Services/ProcessService.cs @@ -1,7 +1,7 @@ using System.Diagnostics; -using Valet.Interfaces; +using ActionsImporter.Interfaces; -namespace Valet.Services; +namespace ActionsImporter.Services; public class ProcessService : IProcessService { @@ -99,7 +99,7 @@ private static void ReadStream(StreamReader reader, bool output, CancellationTok { while (current >= 0) { - // Do not move this check outside of this method, or executions of gh-valet on Windows will hang + // Do not move this check outside of this method, or executions of gh-actions-importer on Windows will hang if (output) Console.Write((char)current); diff --git a/src/Valet.UnitTests/Valet.UnitTests.csproj b/src/Valet.UnitTests/Valet.UnitTests.csproj deleted file mode 100644 index 6b691eee..00000000 --- a/src/Valet.UnitTests/Valet.UnitTests.csproj +++ /dev/null @@ -1,25 +0,0 @@ - - - - net6.0 - - false - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - -