Skip to content

Commit

Permalink
chore: add command in compose to display the onboarding
Browse files Browse the repository at this point in the history
for docker compatibility mode
podman-desktop#9242

Signed-off-by: Florent Benoit <[email protected]>
  • Loading branch information
benoitf committed Nov 6, 2024
1 parent 2b0a488 commit cdee0b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/compose/src/extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ test('commands registered', async () => {
await activate(extensionContextMock);

[
'compose.openComposeOnboarding',
'compose.onboarding.checkDownloadedCommand',
'compose.onboarding.downloadCommand',
'compose.onboarding.promptUserForVersion',
Expand Down
6 changes: 6 additions & 0 deletions extensions/compose/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):
const composeGitHubReleases = new ComposeGitHubReleases(octokit);
const composeDownload = new ComposeDownload(extensionContext, composeGitHubReleases, os);

// add a command to display the onboarding page
const openOnboardingCommand = extensionApi.commands.registerCommand('compose.openComposeOnboarding', async () => {
await extensionApi.navigation.navigateToOnboarding();
});

// ONBOARDING: Command to check compose is downloaded
const onboardingCheckDownloadCommand = extensionApi.commands.registerCommand(
'compose.onboarding.checkDownloadedCommand',
Expand Down Expand Up @@ -198,6 +203,7 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):

// Push the commands that will be used within the onboarding sequence
extensionContext.subscriptions.push(
openOnboardingCommand,
onboardingCheckDownloadCommand,
onboardingPromptUserForVersionCommand,
onboardingDownloadComposeCommand,
Expand Down

0 comments on commit cdee0b7

Please sign in to comment.