Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GetMigrationStatus command to report migration status without waiting #1

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 23, 2024

  1. Add GetMigrationStatus command to report migration status without wai…

    …ting
    
    Add `GetMigrationStatusCommand` to report migration status without waiting.
    
    * **New Command and Handler**
      - Add `GetMigrationStatusCommand` in `src/gei/Commands/GetMigrationStatus/GetMigrationStatusCommand.cs`.
      - Add `GetMigrationStatusCommandHandler` in `src/Octoshift/Commands/GetMigrationStatus/GetMigrationStatusCommandHandler.cs`.
      - Add `GetMigrationStatusCommandArgs` in `src/Octoshift/Commands/GetMigrationStatus/GetMigrationStatusCommandArgs.cs`.
    
    * **Command Options**
      - Add options for `MigrationId`, `GithubPat`, `Verbose`, and `TargetApiUrl` in `GetMigrationStatusCommand`.
    
    * **Handler Implementation**
      - Implement `Handle` method in `GetMigrationStatusCommandHandler` to report migration status without waiting.
      - Remove sleep interval logic from `Handle` method.
    
    * **Tests**
      - Add `GetMigrationStatusCommandTests` in `src/OctoshiftCLI.Tests/gei/Commands/GetMigrationStatus/GetMigrationStatusCommandTests.cs`.
      - Add tests to verify options and `BuildHandler` method.
    
    * **Program Update**
      - Add `GetMigrationStatusCommand` to the root command in `src/gei/Program.cs`.
    
    ---
    
    For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/svg153-org/gh-gei?shareId=XXXX-XXXX-XXXX-XXXX).
    svg153 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    da5ec7f View commit details
    Browse the repository at this point in the history