dotnet-sdk-dev
This module contains functions for developing the SDK such as, running tests,generate introspection, etc.
Installation
dagger install github.com/AmirulAndalib/dagger/sdk/dotnet/dev@3dd66bb0c182fbf0b72ca7b986985ec506027af4Entrypoint
Return Type
DotnetSdkDev !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Dotnet SDK source. |
| container | Container | - | Base container. |
Example
dagger -m github.com/AmirulAndalib/dagger/sdk/dotnet/dev@3dd66bb0c182fbf0b72ca7b986985ec506027af4 call \
func (m *MyModule) Example() *dagger.DotnetSdkDev {
return dag.
DotnetSdkDev()
}@function
def example() -> dagger.DotnetSdkDev:
return (
dag.dotnet_sdk_dev()
)@func()
example(): DotnetSdkDev {
return dag
.dotnetSdkDev()
}Types
DotnetSdkDev 🔗
container() 🔗
Return Type
Container ! Example
dagger -m github.com/AmirulAndalib/dagger/sdk/dotnet/dev@3dd66bb0c182fbf0b72ca7b986985ec506027af4 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
DotnetSdkDev().
Container()
}@function
def example() -> dagger.Container:
return (
dag.dotnet_sdk_dev()
.container()
)@func()
example(): Container {
return dag
.dotnetSdkDev()
.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/AmirulAndalib/dagger/sdk/dotnet/dev@3dd66bb0c182fbf0b72ca7b986985ec506027af4 call \
generate --introspection-json file:pathfunc (m *MyModule) Example(introspectionJson *dagger.File) *dagger.Directory {
return dag.
DotnetSdkDev().
Generate(introspectionJson)
}@function
def example(introspection_json: dagger.File) -> dagger.Directory:
return (
dag.dotnet_sdk_dev()
.generate(introspection_json)
)@func()
example(introspectionJson: File): Directory {
return dag
.dotnetSdkDev()
.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/AmirulAndalib/dagger/sdk/dotnet/dev@3dd66bb0c182fbf0b72ca7b986985ec506027af4 call \
test --introspection-json file:pathfunc (m *MyModule) Example(ctx context.Context, introspectionJson *dagger.File) {
return dag.
DotnetSdkDev().
Test(ctx, introspectionJson)
}@function
async def example(introspection_json: dagger.File) -> None:
return await (
dag.dotnet_sdk_dev()
.test(introspection_json)
)@func()
async example(introspectionJson: File): Promise<void> {
return dag
.dotnetSdkDev()
.test(introspectionJson)
}lint() 🔗
Lint all CSharp source files in the SDK.
Return Type
Void ! Example
dagger -m github.com/AmirulAndalib/dagger/sdk/dotnet/dev@3dd66bb0c182fbf0b72ca7b986985ec506027af4 call \
lintfunc (m *MyModule) Example(ctx context.Context) {
return dag.
DotnetSdkDev().
Lint(ctx)
}@function
async def example() -> None:
return await (
dag.dotnet_sdk_dev()
.lint()
)@func()
async example(): Promise<void> {
return dag
.dotnetSdkDev()
.lint()
}check() 🔗
Run test and lint.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| introspectionJson | File ! | - | No description provided |
Example
dagger -m github.com/AmirulAndalib/dagger/sdk/dotnet/dev@3dd66bb0c182fbf0b72ca7b986985ec506027af4 call \
check --introspection-json file:pathfunc (m *MyModule) Example(ctx context.Context, introspectionJson *dagger.File) {
return dag.
DotnetSdkDev().
Check(ctx, introspectionJson)
}@function
async def example(introspection_json: dagger.File) -> None:
return await (
dag.dotnet_sdk_dev()
.check(introspection_json)
)@func()
async example(introspectionJson: File): Promise<void> {
return dag
.dotnetSdkDev()
.check(introspectionJson)
}format() 🔗
Format all CSharp source files.
Return Type
Directory ! Example
dagger -m github.com/AmirulAndalib/dagger/sdk/dotnet/dev@3dd66bb0c182fbf0b72ca7b986985ec506027af4 call \
formatfunc (m *MyModule) Example() *dagger.Directory {
return dag.
DotnetSdkDev().
Format()
}@function
def example() -> dagger.Directory:
return (
dag.dotnet_sdk_dev()
.format()
)@func()
example(): Directory {
return dag
.dotnetSdkDev()
.format()
}