dagger-cli
No long description provided.
Installation
dagger install github.com/dagger/dagger/cmd/dagger@ad997972f96272f3e140e12b12e00ef4d6e9450b
Entrypoint
Return Type
DaggerCli
Example
dagger -m github.com/dagger/dagger/cmd/dagger@ad997972f96272f3e140e12b12e00ef4d6e9450b call \
func (m *myModule) example() *DaggerCli {
return dag.
DaggerCli()
}
@function
def example() -> dag.DaggerCli:
return (
dag.dagger_cli()
)
@func()
example(): DaggerCli {
return dag
.daggerCli()
}
Types
DaggerCli 🔗
build() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | stopgap: |
version | String | - | No description provided |
tag | String | - | No description provided |
platform | Scalar | - | No description provided |
Example
dagger -m github.com/dagger/dagger/cmd/dagger@ad997972f96272f3e140e12b12e00ef4d6e9450b call \
build
func (m *myModule) example() *Directory {
return dag.
DaggerCli().
Build()
}
@function
def example() -> dagger.Directory:
return (
dag.dagger_cli()
.build()
)
@func()
example(): Directory {
return dag
.daggerCli()
.build()
}
binary() 🔗
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | stopgap: |
version | String | - | No description provided |
tag | String | - | No description provided |
platform | Scalar | - | No description provided |
Example
dagger -m github.com/dagger/dagger/cmd/dagger@ad997972f96272f3e140e12b12e00ef4d6e9450b call \
binary
func (m *myModule) example() *File {
return dag.
DaggerCli().
Binary()
}
@function
def example() -> dagger.File:
return (
dag.dagger_cli()
.binary()
)
@func()
example(): File {
return dag
.daggerCli()
.binary()
}
publish() 🔗
Publish the CLI using GoReleaser
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | stopgap: |
version | String | - | No description provided |
tag | String | - | No description provided |
githubOrgName | String ! | - | No description provided |
githubToken | Secret ! | - | No description provided |
goreleaserKey | Secret ! | - | No description provided |
awsAccessKeyId | Secret ! | - | No description provided |
awsSecretAccessKey | Secret ! | - | No description provided |
awsRegion | Secret ! | - | No description provided |
awsBucket | Secret ! | - | No description provided |
artefactsFqdn | String ! | - | No description provided |
Example
dagger -m github.com/dagger/dagger/cmd/dagger@ad997972f96272f3e140e12b12e00ef4d6e9450b call \
publish --github-org-name string --github-token env:MYSECRET --goreleaser-key env:MYSECRET --aws-access-key-id env:MYSECRET --aws-secret-access-key env:MYSECRET --aws-region env:MYSECRET --aws-bucket env:MYSECRET --artefacts-fqdn string
func (m *myModule) example(ctx context.Context, githubOrgName string, githubToken *Secret, goreleaserKey *Secret, awsAccessKeyId *Secret, awsSecretAccessKey *Secret, awsRegion *Secret, awsBucket *Secret, artefactsFqdn string) {
return dag.
DaggerCli().
Publish(ctxgithubOrgName, githubToken, goreleaserKey, awsAccessKeyId, awsSecretAccessKey, awsRegion, awsBucket, artefactsFqdn)
}
@function
async def example(github_org_name: str, github_token: dagger.Secret, goreleaser_key: dagger.Secret, aws_access_key_id: dagger.Secret, aws_secret_access_key: dagger.Secret, aws_region: dagger.Secret, aws_bucket: dagger.Secret, artefacts_fqdn: str) -> None:
return await (
dag.dagger_cli()
.publish(github_org_name, github_token, goreleaser_key, aws_access_key_id, aws_secret_access_key, aws_region, aws_bucket, artefacts_fqdn)
)
@func()
async example(githubOrgName: string, githubToken: Secret, goreleaserKey: Secret, awsAccessKeyId: Secret, awsSecretAccessKey: Secret, awsRegion: Secret, awsBucket: Secret, artefactsFqdn: string): Promise<void> {
return dag
.daggerCli()
.publish(githubOrgName, githubToken, goreleaserKey, awsAccessKeyId, awsSecretAccessKey, awsRegion, awsBucket, artefactsFqdn)
}
testPublish() 🔗
Verify that the CLI builds without actually publishing anything
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | stopgap: |
version | String | - | No description provided |
tag | String | - | No description provided |
Example
dagger -m github.com/dagger/dagger/cmd/dagger@ad997972f96272f3e140e12b12e00ef4d6e9450b call \
test-publish
func (m *myModule) example(ctx context.Context) {
return dag.
DaggerCli().
TestPublish(ctx)
}
@function
async def example() -> None:
return await (
dag.dagger_cli()
.test_publish()
)
@func()
async example(): Promise<void> {
return dag
.daggerCli()
.testPublish()
}
goreleaser() 🔗
Return Type
Container !
Example
dagger -m github.com/dagger/dagger/cmd/dagger@ad997972f96272f3e140e12b12e00ef4d6e9450b call \
goreleaser
func (m *myModule) example() *Container {
return dag.
DaggerCli().
Goreleaser()
}
@function
def example() -> dagger.Container:
return (
dag.dagger_cli()
.goreleaser()
)
@func()
example(): Container {
return dag
.daggerCli()
.goreleaser()
}
reference() 🔗
Generate a markdown CLI reference doc
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | stopgap: |
frontmatter | String | - | No description provided |
includeExperimental | Boolean | - | Include experimental commands |
Example
dagger -m github.com/dagger/dagger/cmd/dagger@ad997972f96272f3e140e12b12e00ef4d6e9450b call \
reference
func (m *myModule) example() *File {
return dag.
DaggerCli().
Reference()
}
@function
def example() -> dagger.File:
return (
dag.dagger_cli()
.reference()
)
@func()
example(): File {
return dag
.daggerCli()
.reference()
}