wrangler
This is a simple CLI wrapper for Cloudflare Wrangler that also allows you to easilyparameterize the API token, node version, and project directory.
Installation
dagger install github.com/levlaz/daggerverse/wrangler@c464d41e80bbc190018501801fb7e540fb46efba
Entrypoint
Return Type
Wrangler !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
apiToken | Secret ! | - | No description provided |
projectDir | Directory | - | No description provided |
nodeVersion | String | - | No description provided |
projectName | String | - | No description provided |
branch | String | - | No description provided |
Example
dagger -m github.com/levlaz/daggerverse/wrangler@c464d41e80bbc190018501801fb7e540fb46efba call \
--api-token env:MYSECRET
func (m *myModule) example(apiToken *Secret) *Wrangler {
return dag.
Wrangler(apiToken)
}
@function
def example(api_token: dagger.Secret, ) -> dag.Wrangler:
return (
dag.wrangler(api_token)
)
@func()
example(apiToken: Secret, ): Wrangler {
return dag
.wrangler(apiToken)
}
Types
Wrangler 🔗
base() 🔗
Return Type
Container !
Example
dagger -m github.com/levlaz/daggerverse/wrangler@c464d41e80bbc190018501801fb7e540fb46efba call \
--api-token env:MYSECRET base
func (m *myModule) example(apiToken *Secret) *Container {
return dag.
Wrangler(apiToken).
Base()
}
@function
def example(api_token: dagger.Secret, ) -> dagger.Container:
return (
dag.wrangler(api_token)
.base()
)
@func()
example(apiToken: Secret, ): Container {
return dag
.wrangler(apiToken)
.base()
}
deploy() 🔗
Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/wrangler@c464d41e80bbc190018501801fb7e540fb46efba call \
--api-token env:MYSECRET deploy
func (m *myModule) example(ctx context.Context, apiToken *Secret) string {
return dag.
Wrangler(apiToken).
Deploy(ctx)
}
@function
async def example(api_token: dagger.Secret, ) -> str:
return await (
dag.wrangler(api_token)
.deploy()
)
@func()
async example(apiToken: Secret, ): Promise<string> {
return dag
.wrangler(apiToken)
.deploy()
}