azdo
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/techdecline/dagger-pulumi/azdo@c553c24b2856ccbe24ecaa219a39f42776b7ad14
Entrypoint
Return Type
Azdo !
Example
dagger -m github.com/techdecline/dagger-pulumi/azdo@c553c24b2856ccbe24ecaa219a39f42776b7ad14 call \
func (m *myModule) example() *Azdo {
return dag.
Azdo()
}
@function
def example() -> dag.Azdo:
return (
dag.azdo()
)
@func()
example(): Azdo {
return dag
.azdo()
}
Types
Azdo 🔗
commentOnPr() 🔗
Comment on an Azure DevOps pull request
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
azureDevopsPat | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
organizationUrl | String ! | - | No description provided |
project | String ! | - | No description provided |
repositoryId | String ! | - | No description provided |
prId | String ! | - | No description provided |
comment | String ! | - | No description provided |
Example
dagger -m github.com/techdecline/dagger-pulumi/azdo@c553c24b2856ccbe24ecaa219a39f42776b7ad14 call \
comment-on-pr --azure-devops-pat env:MYSECRET --organization-url string --project string --repository-id string --pr-id string --comment string
func (m *myModule) example(ctx context.Context, azureDevopsPat *Secret, organizationUrl string, project string, repositoryId string, prId string, comment string) string {
return dag.
Azdo().
CommentOnPr(ctx, azureDevopsPat, organizationUrl, project, repositoryId, prId, comment)
}
@function
async def example(azure_devops_pat: dagger.Secret, organization_url: str, project: str, repository_id: str, pr_id: str, comment: str) -> str:
return await (
dag.azdo()
.comment_on_pr(azure_devops_pat, organization_url, project, repository_id, pr_id, comment)
)
@func()
async example(azureDevopsPat: Secret, organizationUrl: string, project: string, repositoryId: string, prId: string, comment: string): Promise<string> {
return dag
.azdo()
.commentOnPr(azureDevopsPat, organizationUrl, project, repositoryId, prId, comment)
}
containerEcho() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
stringArg | String ! | - | No description provided |
Example
dagger -m github.com/techdecline/dagger-pulumi/azdo@c553c24b2856ccbe24ecaa219a39f42776b7ad14 call \
container-echo --string-arg string
func (m *myModule) example(stringArg string) *Container {
return dag.
Azdo().
ContainerEcho(stringArg)
}
@function
def example(string_arg: str) -> dagger.Container:
return (
dag.azdo()
.container_echo(string_arg)
)
@func()
example(stringArg: string): Container {
return dag
.azdo()
.containerEcho(stringArg)
}