Azure CLI Code Generator
Перейти к файлу
Changlong Liu 4a324ccc5a set sdk-flatten by RP 2020-12-08 09:35:04 +08:00
.scripts set sdk-flatten by RP 2020-12-08 09:35:04 +08:00
.vscode checkin-vscode-launch-json (#665) 2020-12-02 10:12:57 +08:00
azure-pipelines try fix security issue (#643) 2020-11-20 15:06:34 +08:00
common try fix security issue (#643) 2020-11-20 15:06:34 +08:00
doc inplace doc, and update zipfile after codegen succeed (#671) 2020-12-04 17:25:51 +08:00
src set sdk-flatten by RP 2020-12-08 09:35:04 +08:00
.gitignore checkin-vscode-launch-json (#665) 2020-12-02 10:12:57 +08:00
CODE_OF_CONDUCT.md normalize-the-eol-in-file (#410) 2020-06-08 10:04:24 +08:00
LICENSE normalize-the-eol-in-file (#410) 2020-06-08 10:04:24 +08:00
README.md change-default-extension-no-flatten (#667) 2020-12-03 09:46:02 +08:00
SECURITY.md normalize-the-eol-in-file (#410) 2020-06-08 10:04:24 +08:00
package.json Upgrade Release Version to 1.6.2 (#596) 2020-10-23 10:49:29 +08:00
readme.az.common.md support az for cli core (#528) 2020-09-09 14:09:47 +08:00
rush.json Bump m4 version (#587) 2020-10-22 13:17:12 +08:00
tsconfig.json add test 2020-01-20 14:52:56 +08:00

README.md

configuration

See documentation here


python:
    reason: 'make sure python flag exists to load config in python.md'
azure-arm: true

output-folder: $(az-output-folder)
debug-output-folder: $(az-output-folder)/_az_debug

use-extension:
  "@autorest/python": "5.4.0"
  "@autorest/clicommon": "0.5.8"
  #"@autorest/python": "latest"

require:
  - ./readme.python.md
  - ./readme.cli.md
  - $(this-folder)/readme.az.common.md

pipeline-model: v3

scope-clicommon:
    output-folder: $(debug-output-folder)

scope-az:
    is-object: false
    output-artifact:
        #- source-file-az-hider
        #- source-file-pynamer
        #- source-file-aznamer
        #- source-file-modifiers
        #- source-file-merger
        - source-file-extension
    output-folder: $(az-output-folder)

cli:
    reason: 'make sure cli flag exists to load config in cli.md'
    naming:
        default:
            parameter: 'snake'
            property: 'snake'
            operation: 'snake'
            operationGroup:  'pascal'
            choice:  'pascal'
            choiceValue:  'snake'
            constant:  'snake'
            type:  'pascal'

modelerfour:
    lenient-model-deduplication: true
    group-parameters: true
    flatten-models: true
    flatten-payloads: true
    # keep-unused-flattened-models: true
#payload-flattening-threshold: 4
#recursive-payload-flattening: true

pipeline:
    python/m2r:
        input: clicommon/identity
    az/hider:
        input: python/namer
        #output-artifact: source-file-az-hider
    python/codegen:
        input: az/hider
    az/merger:
        input: python/namer
        #output-artifact: source-file-merger
    az/aznamer:
        input: az/merger
        #output-artifact: source-file-aznamer
    az/modifiers:
        input: az/aznamer
        #output-artifact: source-file-modifiers
    az/azgenerator:
        input: az/modifiers
        output-artifact: source-file-extension
    az/emitter:
        input:
            #- az/hider
            #- az/clicommon
            #- az/merger
            #- az/aznamer
            #- az/modifiers
            - az/azgenerator
        scope: scope-az

#payload-flattening-threshold: 4
#recursive-payload-flattening: true

cli:
    naming:
        m4:
            parameter: 'snake'
            property: 'snake'
            operation: 'snake'
            operationGroup:  'snake'
            choice:  'pascal'
            choiceValue:  'pascal'
            constant:  'snake'
            type:  'snake'

pipeline:
    python/m2r:
        input: clicommon/cli-m4namer
    az/renamer:
        input: clicommon/identity
    az/merger:
        input:
            - az/renamer
            - python/namer
        #output-artifact: source-file-merger
    az/aznamer:
        input: az/merger
        #output-artifact: source-file-aznamer
    az/modifiers:
        input: az/aznamer
        #output-artifact: source-file-modifiers
    az/azgenerator:
        input: az/modifiers
        output-artifact: source-file-extension
    az/emitter:
        input:
            #- az/hider
            #- az/clicommon
            #- az/merger
            #- az/aznamer
            #- az/modifiers
            - az/azgenerator
        scope: scope-az