Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions .vortex/installer/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions .vortex/installer/src/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

static::header();

$pm->prompt();
$pm->runPrompts();

Tui::list($pm->getResponsesSummary(), 'Installation summary');

Expand All @@ -116,36 +116,36 @@ protected function execute(InputInterface $input, OutputInterface $output): int

Tui::action(
label: '⬇️ Downloading Vortex',
hint: fn(): string => sprintf('Downloading from "%s" repository at commit "%s"', ...Downloader::parseUri($this->config->get(Config::REPO))),
success: 'Vortex downloaded',
action: function (): void {
$version = (new Downloader())->download($this->config->get(Config::REPO), $this->config->get(Config::REF), $this->config->get(Config::TMP));
$this->config->set(Config::VERSION, $version);
},
hint: fn(): string => sprintf('Downloading from "%s" repository at commit "%s"', ...Downloader::parseUri($this->config->get(Config::REPO))),
success: 'Vortex downloaded',
);

Tui::action(
label: '⚙️ Customizing Vortex for your project',
action: fn() => $pm->runProcessors(),
success: 'Vortex was customized for your project',
action: fn() => $pm->process(),
);

Tui::action(
label: '🥣 Preparing destination directory',
success: 'Destination directory is ready',
action: fn(): array => $this->prepareDestination(),
success: 'Destination directory is ready',
);

Tui::action(
label: '➡️ Copying files to the destination directory',
success: 'Files copied to destination directory',
action: fn() => $this->copyFiles(),
success: 'Files copied to destination directory',
);

Tui::action(
label: '🎬 Preparing demo content',
success: 'Demo content prepared',
action: fn(): string|array => $this->handleDemo(),
success: 'Demo content prepared',
);

// @todo Implement the demo mode.
Expand Down
Loading