File tree Expand file tree Collapse file tree 5 files changed +48
-3
lines changed Expand file tree Collapse file tree 5 files changed +48
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " wrangler " : patch
3
+ ---
4
+
5
+ Add initial containers subcommand to wrangler.
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ describe("cloudchamber image list", () => {
181
181
expect ( std . out ) . toMatchInlineSnapshot ( `
182
182
"wrangler cloudchamber images list
183
183
184
- perform operations on images in your cloudchamber registry
184
+ perform operations on images in your Cloudflare managed registry
185
185
186
186
GLOBAL FLAGS
187
187
-c, --config Path to Wrangler configuration file [string]
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export const imagesCommand = (yargs: CommonYargsArgvJSON) => {
25
25
return yargs
26
26
. command (
27
27
"list" ,
28
- "perform operations on images in your cloudchamber registry" ,
28
+ "perform operations on images in your Cloudflare managed registry" ,
29
29
( args ) => listImagesYargs ( args ) ,
30
30
( args ) =>
31
31
handleFailure ( async ( _args : CommonYargsArgvSanitizedJSON , config ) => {
@@ -34,7 +34,7 @@ export const imagesCommand = (yargs: CommonYargsArgvJSON) => {
34
34
)
35
35
. command (
36
36
"delete [image]" ,
37
- "remove an image from your cloudchamber registry" ,
37
+ "remove an image from your Cloudflare managed registry" ,
38
38
( args ) => deleteImageYargs ( args ) ,
39
39
( args ) =>
40
40
handleFailure ( async ( _args : CommonYargsArgvSanitizedJSON , config ) => {
Original file line number Diff line number Diff line change
1
+ import {
2
+ buildCommand ,
3
+ buildYargs ,
4
+ pushCommand ,
5
+ pushYargs ,
6
+ } from "../cloudchamber/build" ;
7
+ import { handleFailure } from "../cloudchamber/common" ;
8
+ import { imagesCommand } from "../cloudchamber/images/list" ;
9
+ import type { CommonYargsArgvJSON , CommonYargsOptions } from "../yargs-types" ;
10
+ import type { CommandModule } from "yargs" ;
11
+
12
+ export const containers = (
13
+ yargs : CommonYargsArgvJSON ,
14
+ subHelp : CommandModule < CommonYargsOptions , CommonYargsOptions >
15
+ ) => {
16
+ return yargs
17
+ . command (
18
+ "build [PATH]" ,
19
+ "build a dockerfile" ,
20
+ ( args ) => buildYargs ( args ) ,
21
+ ( args ) => handleFailure ( buildCommand ) ( args )
22
+ )
23
+ . command (
24
+ "push [TAG]" ,
25
+ "push a tagged image to a Cloudflare managed registry, which is automatically integrated with your account" ,
26
+ ( args ) => pushYargs ( args ) ,
27
+ ( args ) => handleFailure ( pushCommand ) ( args )
28
+ )
29
+ . command (
30
+ "images" ,
31
+ "perform operations on images in your Cloudflare managed registry" ,
32
+ ( args ) => imagesCommand ( args ) . command ( subHelp )
33
+ ) ;
34
+ } ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
16
16
import { checkNamespace , checkStartupCommand } from "./check/commands" ;
17
17
import { cloudchamber } from "./cloudchamber" ;
18
18
import { experimental_readRawConfig , loadDotEnv } from "./config" ;
19
+ import { containers } from "./containers" ;
19
20
import { demandSingleValue } from "./core" ;
20
21
import { CommandRegistry } from "./core/CommandRegistry" ;
21
22
import { createRegisterYargsCommand } from "./core/register-yargs-command" ;
@@ -782,6 +783,11 @@ export function createCLIParser(argv: string[]) {
782
783
return cloudchamber ( asJson ( cloudchamberArgs . command ( subHelp ) ) , subHelp ) ;
783
784
} ) ;
784
785
786
+ // containers
787
+ wrangler . command ( "containers" , false , ( containersArgs ) => {
788
+ return containers ( asJson ( containersArgs . command ( subHelp ) ) , subHelp ) ;
789
+ } ) ;
790
+
785
791
// [PRIVATE BETA] pubsub
786
792
wrangler . command (
787
793
"pubsub" ,
You can’t perform that action at this time.
0 commit comments