hello-dagger
No long description provided.
Installation
dagger install github.com/johnhkchen/ezstack@3683e105f98ddb37550fdfd8ca1eddad9caff7d2
Entrypoint
Return Type
HelloDagger
Example
dagger -m github.com/johnhkchen/ezstack@3683e105f98ddb37550fdfd8ca1eddad9caff7d2 call \
func (m *MyModule) Example() *dagger.HelloDagger {
return dag.
HelloDagger()
}
@function
def example() -> dagger.HelloDagger:
return (
dag.hello_dagger()
)
@func()
example(): HelloDagger {
return dag
.helloDagger()
}
Types
HelloDagger 🔗
publish() 🔗
Publish the application container after building and testing it on-the-fly
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | No description provided |
Example
dagger -m github.com/johnhkchen/ezstack@3683e105f98ddb37550fdfd8ca1eddad9caff7d2 call \
publish
func (m *MyModule) Example(ctx context.Context) string {
return dag.
HelloDagger().
Publish(ctx)
}
@function
async def example() -> str:
return await (
dag.hello_dagger()
.publish()
)
@func()
async example(): Promise<string> {
return dag
.helloDagger()
.publish()
}
build() 🔗
Build the application container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | No description provided |
Example
dagger -m github.com/johnhkchen/ezstack@3683e105f98ddb37550fdfd8ca1eddad9caff7d2 call \
build
func (m *MyModule) Example() *dagger.Container {
return dag.
HelloDagger().
Build()
}
@function
def example() -> dagger.Container:
return (
dag.hello_dagger()
.build()
)
@func()
example(): Container {
return dag
.helloDagger()
.build()
}
test() 🔗
Return the result of running unit tests
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | No description provided |
Example
dagger -m github.com/johnhkchen/ezstack@3683e105f98ddb37550fdfd8ca1eddad9caff7d2 call \
test
func (m *MyModule) Example(ctx context.Context) string {
return dag.
HelloDagger().
Test(ctx)
}
@function
async def example() -> str:
return await (
dag.hello_dagger()
.test()
)
@func()
async example(): Promise<string> {
return dag
.helloDagger()
.test()
}
buildEnv() 🔗
Build a ready-to-use development environment
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | No description provided |
Example
dagger -m github.com/johnhkchen/ezstack@3683e105f98ddb37550fdfd8ca1eddad9caff7d2 call \
build-env
func (m *MyModule) Example() *dagger.Container {
return dag.
HelloDagger().
BuildEnv()
}
@function
def example() -> dagger.Container:
return (
dag.hello_dagger()
.build_env()
)
@func()
example(): Container {
return dag
.helloDagger()
.buildEnv()
}
develop() 🔗
A coding agent for developing new features
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
assignment | String ! | - | No description provided |
source | Directory | - | No description provided |
Example
dagger -m github.com/johnhkchen/ezstack@3683e105f98ddb37550fdfd8ca1eddad9caff7d2 call \
develop --assignment string
func (m *MyModule) Example(assignment string) *dagger.Directory {
return dag.
HelloDagger().
Develop(assignment)
}
@function
def example(assignment: str) -> dagger.Directory:
return (
dag.hello_dagger()
.develop(assignment)
)
@func()
example(assignment: string): Directory {
return dag
.helloDagger()
.develop(assignment)
}
developIssue() 🔗
Develop with a Github issue as the assignment and open a pull request
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
githubToken | Secret ! | - | Github Token with permissions to write issues and contents |
issueId | Integer ! | - | Github issue number |
repository | String ! | - | Github repository url |
source | Directory | - | The source directory |
Example
dagger -m github.com/johnhkchen/ezstack@3683e105f98ddb37550fdfd8ca1eddad9caff7d2 call \
develop-issue --github-token env:MYSECRET --issue-id integer --repository string
func (m *MyModule) Example(ctx context.Context, githubToken *dagger.Secret, issueId int, repository string) string {
return dag.
HelloDagger().
DevelopIssue(ctx, githubToken, issueId, repository)
}
@function
async def example(github_token: dagger.Secret, issue_id: int, repository: str) -> str:
return await (
dag.hello_dagger()
.develop_issue(github_token, issue_id, repository)
)
@func()
async example(githubToken: Secret, issueId: number, repository: string): Promise<string> {
return dag
.helloDagger()
.developIssue(githubToken, issueId, repository)
}