Skip to content

Commit

Permalink
Add db uninstall command
Browse files Browse the repository at this point in the history
  • Loading branch information
mischabraam committed May 14, 2024
1 parent eb08d82 commit 87a6866
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,22 @@
return;
}

if ($run === 'uninstall') {
if (!$defaults['yes']) {
$question = new ConfirmationQuestion('Are you sure you want to remove mysql? [y/N] ', false);
if (!$helper->ask($input, $output, $question)) {
return;
}
}

Mysql::uninstall();

return;
}

throw new RuntimeException('Command not found');
})
->descriptions('Database commands (list/ls, create, drop, reset, import, reimport, export/dump, pwd/password)');
->descriptions('Database commands (list/ls, create, drop, reset, import, reimport, export/dump, pwd/password, uninstall)');

/**
* Elasticsearch/opensearch services.
Expand Down

0 comments on commit 87a6866

Please sign in to comment.