Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Emitter helper functions in language repos #9417

Open
maririos opened this issue Nov 21, 2024 · 0 comments
Open

Cleanup Emitter helper functions in language repos #9417

maririos opened this issue Nov 21, 2024 · 0 comments
Labels
Automation Tool Central-EngSys This issue is owned by the Engineering System team.

Comments

@maririos
Copy link
Member

maririos commented Nov 21, 2024

The main 4 repos have the following common functions in the Language-Settings.ps1 file. As part of cleaning previous tooling, we should delete these functions.

These are only used by the https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/scripts/TypeSpec-Project-Generate.ps1

.NET:

function Get-dotnet-EmitterName() {
  return "@azure-tools/typespec-csharp"
}

function Get-dotnet-EmitterAdditionalOptions([string]$projectDirectory) {
  return "--option @azure-tools/typespec-csharp.emitter-output-dir=$projectDirectory/src"
}

Java:

function Get-java-EmitterName() {
  return "@azure-tools/typespec-java"
}

function Get-java-EmitterAdditionalOptions([string]$projectDirectory) {
  return "--option @azure-tools/typespec-java.emitter-output-dir=$projectDirectory/"
}

Python

function Get-python-EmitterName() {
  return "@azure-tools/typespec-python"
}

function Get-python-EmitterAdditionalOptions([string]$projectDirectory) {
  return "--option @azure-tools/typespec-python.emitter-output-dir=$projectDirectory/"
}

JS

function Get-javascript-EmitterName() {
  return "@azure-tools/typespec-ts"
}

function Get-javascript-EmitterAdditionalOptions([string]$projectDirectory) {
  return "--option @azure-tools/typespec-ts.emitter-output-dir=$projectDirectory/"
}
@maririos maririos added Automation Tool Central-EngSys This issue is owned by the Engineering System team. labels Nov 21, 2024
@maririos maririos changed the title Purpose of Emitter helper functions in language repos Cleanup Emitter helper functions in language repos Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation Tool Central-EngSys This issue is owned by the Engineering System team.
Projects
Status: Backlog
Status: 🤔 Triage
Development

No branches or pull requests

2 participants