feat: improve deployment workflows
This commit is contained in:
+1
-2
@@ -15,12 +15,11 @@ export const restart = defineCommand({
|
||||
async run() {
|
||||
await assertManagedNamespace(getProject());
|
||||
const deployments = await listManagedDeployments();
|
||||
if (deployments.length === 0) return;
|
||||
|
||||
await new Listr([
|
||||
{
|
||||
title: "Restart deployments",
|
||||
skip: () =>
|
||||
deployments.length > 0 ? false : "No managed deployments found",
|
||||
task: (_ctx, task) => {
|
||||
task.output = `${deployments.length} deployments queued`;
|
||||
return task.newListr(
|
||||
|
||||
Reference in New Issue
Block a user