Skip to content

Commit 780ec92

Browse files
authored
set flavor to azure if not set (#2988)
* set flavor to azure if not set * changeset
1 parent 4387a34 commit 780ec92

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
changeKind: feature
3+
packages:
4+
- "@azure-tools/typespec-python"
5+
---
6+
7+
set flavor to azure if not set

packages/typespec-python/src/emitter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ import { PythonEmitterOptions } from "./lib.js";
33
import { $onEmit as httpClientPythonOnEmit } from "@typespec/http-client-python";
44

55
export async function $onEmit(context: EmitContext<PythonEmitterOptions>) {
6+
// set flavor to azure if not set for python azure emitter
7+
if (context.options.flavor === undefined) {
8+
context.options.flavor = "azure";
9+
}
610
await httpClientPythonOnEmit(context);
711
}

0 commit comments

Comments
 (0)