Skip to content

Commit 3f70bd1

Browse files
author
Jeroen de Graaf
committed
Demo cli: weigh subscribe/unsubscribe more than change name/capacity
Making the demo run more interesting to look at
1 parent e52ad55 commit 3f70bd1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Infrastructure/Api/Cli/Command/DemoRunCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8787
private function pickAction(): string
8888
{
8989
/** @var list<string> $actions */
90-
$actions = [...self::ACTIONS_BASE, ...self::ACTIONS_COURSES, ...self::ACTIONS_SUBSCRIPTIONS];
90+
$actions = [
91+
...self::ACTIONS_BASE,
92+
...self::ACTIONS_BASE,
93+
...self::ACTIONS_COURSES,
94+
...self::ACTIONS_SUBSCRIPTIONS,
95+
...self::ACTIONS_SUBSCRIPTIONS,
96+
];
9197

9298
return $actions[random_int(0, count($actions) - 1)];
9399
}

0 commit comments

Comments
 (0)