Skip to content

Variable interpolation Cannot work When input a parameter by --arg in command #1434

Description

@dw511214992

How to reproduce

  1. Download the cadl project I used.
  2. npm install
  3. npx cadl compile . --emit @azure-tools/cadl-java --arg "java-repo-folder=/tmp/java"

Result

The codes are generated in {cwd}/azure-sdk-for-java.

Expected

The codes should be generated in /tmp/java.

Other Issue:

In the cadl-project.yaml, you can find the value of emitter-output-dir is surrounded by double quotes. If I delete the double quotes, the cadl reports error: bad indentation of a mapping entry (6:45)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions