-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: convert deployments to createCommand (#7499)
* chore: convert deployments to createCommand kebab case for positional remove print banner chore: register namesapce * chore: add hidden to deployments view * remove unused imports * Update packages/wrangler/src/versions/deployments/list.ts * Update packages/wrangler/src/versions/deployments/list.ts * Update packages/wrangler/src/versions/deployments/status.ts * Update packages/wrangler/src/versions/deployments/status.ts * Update packages/wrangler/src/versions/deployments/status.ts * Update packages/wrangler/src/versions/deployments/view.ts * chore: update snapshots --------- Co-authored-by: Carmen Popoviciu <[email protected]>
- Loading branch information
1 parent
ca9410a
commit a55bc36
Showing
7 changed files
with
254 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
import { | ||
versionsDeploymentsListHandler, | ||
versionsDeploymentsListOptions, | ||
} from "./list"; | ||
import { | ||
versionsDeploymentsStatusHandler, | ||
versionsDeploymentsStatusOptions, | ||
} from "./status"; | ||
import { | ||
versionsDeploymentsViewHandler, | ||
versionsDeploymentsViewOptions, | ||
} from "./view"; | ||
import type { CommonYargsArgv } from "../../yargs-types"; | ||
import { createNamespace } from "../../core/create-command"; | ||
|
||
export default function registerVersionsDeploymentsSubcommands( | ||
versionDeploymentsYargs: CommonYargsArgv | ||
) { | ||
versionDeploymentsYargs | ||
.command( | ||
"list", | ||
"Displays the 10 most recent deployments of your Worker", | ||
versionsDeploymentsListOptions, | ||
versionsDeploymentsListHandler | ||
) | ||
.command( | ||
"status", | ||
"View the current state of your production", | ||
versionsDeploymentsStatusOptions, | ||
versionsDeploymentsStatusHandler | ||
) | ||
.command( | ||
"view [deployment-id]", | ||
false, | ||
versionsDeploymentsViewOptions, | ||
versionsDeploymentsViewHandler | ||
); | ||
} | ||
export const deploymentsNamespace = createNamespace({ | ||
metadata: { | ||
description: | ||
"🚢 List and view the current and past deployments for your Worker", | ||
owner: "Workers: Authoring and Testing", | ||
status: "stable", | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.