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@1acf559d7d526eb01b61593742b6326178a007e5Entrypoint
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@1acf559d7d526eb01b61593742b6326178a007e5 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@1acf559d7d526eb01b61593742b6326178a007e5 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@1acf559d7d526eb01b61593742b6326178a007e5 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@1acf559d7d526eb01b61593742b6326178a007e5 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@1acf559d7d526eb01b61593742b6326178a007e5 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@1acf559d7d526eb01b61593742b6326178a007e5 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()
}