csharp-sdk-dev
This module contains functions for developing the SDK such as, running tests,generate introspection, etc.
Installation
dagger install github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717cEntrypoint
Return Type
CsharpSdkDev !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | C# SDK source. |
| container | Container | - | Base container. |
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
func (m *MyModule) Example() *dagger.CsharpSdkDev {
return dag.
CsharpSdkDev()
}@function
def example() -> dagger.CsharpSdkDev:
return (
dag.csharp_sdk_dev()
)@func()
example(): CsharpSdkDev {
return dag
.csharpSdkDev()
}Types
CsharpSdkDev 🔗
container() 🔗
Return Type
Container ! Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
CsharpSdkDev().
Container()
}@function
def example() -> dagger.Container:
return (
dag.csharp_sdk_dev()
.container()
)@func()
example(): Container {
return dag
.csharpSdkDev()
.container()
}generate() 🔗
Generate code from introspection json file.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| introspectionJson | File ! | - | No description provided |
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
generate --introspection-json file:pathfunc (m *MyModule) Example(introspectionJson *dagger.File) *dagger.Directory {
return dag.
CsharpSdkDev().
Generate(introspectionJson)
}@function
def example(introspection_json: dagger.File) -> dagger.Directory:
return (
dag.csharp_sdk_dev()
.generate(introspection_json)
)@func()
example(introspectionJson: File): Directory {
return dag
.csharpSdkDev()
.generate(introspectionJson)
}test() 🔗
Testing the SDK.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| introspectionJson | File ! | - | No description provided |
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
test --introspection-json file:pathfunc (m *MyModule) Example(ctx context.Context, introspectionJson *dagger.File) {
return dag.
CsharpSdkDev().
Test(ctx, introspectionJson)
}@function
async def example(introspection_json: dagger.File) -> None:
return await (
dag.csharp_sdk_dev()
.test(introspection_json)
)@func()
async example(introspectionJson: File): Promise<void> {
return dag
.csharpSdkDev()
.test(introspectionJson)
}lint() 🔗
Lint all C# source files in the SDK.
Return Type
Void ! Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
lintfunc (m *MyModule) Example(ctx context.Context) {
return dag.
CsharpSdkDev().
Lint(ctx)
}@function
async def example() -> None:
return await (
dag.csharp_sdk_dev()
.lint()
)@func()
async example(): Promise<void> {
return dag
.csharpSdkDev()
.lint()
}format() 🔗
Format all C# source files.
Return Type
Directory ! Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
formatfunc (m *MyModule) Example() *dagger.Directory {
return dag.
CsharpSdkDev().
Format()
}@function
def example() -> dagger.Directory:
return (
dag.csharp_sdk_dev()
.format()
)@func()
example(): Directory {
return dag
.csharpSdkDev()
.format()
}pack() 🔗
Pack the Dagger.SDK into a NuGet package.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| introspectionJson | File ! | - | No description provided |
| configuration | String | "Release" | No description provided |
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
pack --introspection-json file:pathfunc (m *MyModule) Example(introspectionJson *dagger.File) *dagger.Directory {
return dag.
CsharpSdkDev().
Pack(introspectionJson)
}@function
def example(introspection_json: dagger.File) -> dagger.Directory:
return (
dag.csharp_sdk_dev()
.pack(introspection_json)
)@func()
example(introspectionJson: File): Directory {
return dag
.csharpSdkDev()
.pack(introspectionJson)
}publish() 🔗
Publish the Dagger.SDK to NuGet.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| introspectionJson | File ! | - | No description provided |
| version | String ! | - | No description provided |
| nugetToken | Secret | - | No description provided |
| dryRun | Boolean | - | No description provided |
Example
dagger -m github.com/pjmagee/dagger/sdk/csharp/dev@de8b5f9b7f63bc2c23e415f66e1040ba5728717c call \
publish --introspection-json file:path --version stringfunc (m *MyModule) Example(ctx context.Context, introspectionJson *dagger.File, version string) {
return dag.
CsharpSdkDev().
Publish(ctx, introspectionJson, version)
}@function
async def example(introspection_json: dagger.File, version: str) -> None:
return await (
dag.csharp_sdk_dev()
.publish(introspection_json, version)
)@func()
async example(introspectionJson: File, version: string): Promise<void> {
return dag
.csharpSdkDev()
.publish(introspectionJson, version)
}