dagger-publisher
No long description provided.
Installation
dagger install github.com/quartz-technology/daggerverse/dagger-publisher@v0.0.2Entrypoint
Return Type
DaggerPublisher !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | - | No description provided |
Example
dagger -m github.com/quartz-technology/daggerverse/dagger-publisher@00f5931a9537bfaca73669e71fbde640aef22a0e call \
func (m *MyModule) Example() *dagger.DaggerPublisher {
return dag.
DaggerPublisher()
}@function
def example() -> dagger.DaggerPublisher:
return (
dag.dagger_publisher()
)@func()
example(): DaggerPublisher {
return dag
.daggerPublisher()
}Types
DaggerPublisher 🔗
container() 🔗
Return Type
Container ! Example
dagger -m github.com/quartz-technology/daggerverse/dagger-publisher@00f5931a9537bfaca73669e71fbde640aef22a0e call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
DaggerPublisher().
Container()
}@function
def example() -> dagger.Container:
return (
dag.dagger_publisher()
.container()
)@func()
example(): Container {
return dag
.daggerPublisher()
.container()
}publish() 🔗
Publish executes the publish command to upload the module to the Daggerverse.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repository | Directory ! | - | The repository to use the Dagger CLI on |
| path | String | - | The path to the module to publish |
Example
dagger -m github.com/quartz-technology/daggerverse/dagger-publisher@00f5931a9537bfaca73669e71fbde640aef22a0e call \
publish --repository DIR_PATHfunc (m *MyModule) Example(ctx context.Context, repository *dagger.Directory) string {
return dag.
DaggerPublisher().
Publish(ctx, repository)
}@function
async def example(repository: dagger.Directory) -> str:
return await (
dag.dagger_publisher()
.publish(repository)
)@func()
async example(repository: Directory): Promise<string> {
return dag
.daggerPublisher()
.publish(repository)
}