setup
No long description provided.
Installation
dagger install github.com/dagger/intro@4d92f7861c83c17d598012dba673e05dad556505Entrypoint
Return Type
Setup !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| workspace | Workspace | - | No description provided |
Example
dagger -m github.com/dagger/intro@4d92f7861c83c17d598012dba673e05dad556505 call \
func (m *MyModule) Example() *dagger.Setup {
return dag.
Setup()
}@function
def example() -> dagger.Setup:
return (
dag.setup()
)@func()
example(): Setup {
return dag
.setup()
}Types
Setup 🔗
A Setup module for Dagger. Provides checks to walk you through adopting Dagger in your project.
installSetup() 🔗
Install your first Toolchain
Return Type
Void ! Example
dagger -m github.com/dagger/intro@4d92f7861c83c17d598012dba673e05dad556505 call \
install-setupfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Setup().
InstallSetup(ctx)
}@function
async def example() -> None:
return await (
dag.setup()
.install_setup()
)@func()
async example(): Promise<void> {
return dag
.setup()
.installSetup()
}loginToCloud() 🔗
Login to Dagger Cloud with dagger login
Return Type
Void ! Example
dagger -m github.com/dagger/intro@4d92f7861c83c17d598012dba673e05dad556505 call \
login-to-cloudfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Setup().
LoginToCloud(ctx)
}@function
async def example() -> None:
return await (
dag.setup()
.login_to_cloud()
)@func()
async example(): Promise<void> {
return dag
.setup()
.loginToCloud()
}installMoreToolchains() 🔗
Install your next toolchain
Return Type
Void ! Example
dagger -m github.com/dagger/intro@4d92f7861c83c17d598012dba673e05dad556505 call \
install-more-toolchainsfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Setup().
InstallMoreToolchains(ctx)
}@function
async def example() -> None:
return await (
dag.setup()
.install_more_toolchains()
)@func()
async example(): Promise<void> {
return dag
.setup()
.installMoreToolchains()
}