Skip to content

Commit

Permalink
feat: added package description argument to sdk-auto-generate-dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianKuesters committed Mar 14, 2024
1 parent 765d144 commit 18e9ffe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sdk-auto-generate-dotnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ class SdkAutoGenerateDotnetGenerator extends BaseDotnetTemplateGenerator {
name: 'name',
message: 'Project name',
default: `Wemogy.${toPascalCase(this.appname)}.Sdk.Public`
},
{
type: 'input',
name: 'description',
message:
'Specifies a AssemblyDescription for the .NET Framework global assembly attributes stored in the AssemblyInfo file.',
default: ''
}
]);
}
Expand All @@ -50,7 +57,8 @@ class SdkAutoGenerateDotnetGenerator extends BaseDotnetTemplateGenerator {
this.answers.webservice,
this.answers.swagger,
this.answers.targetDirectory,
this.answers.name
this.answers.name,
this.answers.description
],
{
shell: true
Expand Down
3 changes: 3 additions & 0 deletions src/sdk-auto-generate-dotnet/templates/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ webservice=$2
swagger=$3
targetDirectory=$4
packageName=$5
packageDescription=$6

projectPath=$targetDirectory/$packageName

Expand Down Expand Up @@ -36,6 +37,8 @@ additionalProperties:
nullableReferenceTypes: true
packageName: $packageName
packageVersion: 1.0.0
packageCopyright: wemogy GmbH
packageDescription: $packageDescription
targetFramework: netstandard2.1
nonPublicApi: false # Can be set to true for rich SDKs, where the API should not be exposed to the user directly
EOF
Expand Down

0 comments on commit 18e9ffe

Please sign in to comment.