cadlranch

package
v0.0.0-...-f9b13d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

README

@azure-tools/typespec-go

step

  • add ./script/tspcompile.js cadlRanch list(cadl-ranch-specs resourcemanager path)
  'managed_identity': ['azure/resource-manager/models/common-types/managed-identity'],
  'resources': ['azure/resource-manager/models/resources'],
  • node ./scripts/tspcompile.js --filter (previous step added cadlRanch)

  • node ./scripts/cadl-ranch.js --start/--stop cadl-ranch server

  • write cadl-ranch test, ref: https://github.com/Azure/cadl-ranch/tree/main/packages/cadl-ranch-specs/http/azure/resource-manager/models

Documentation

Index

Constants

View Source
const (
	TSP_COMPILE_JS = "tspcompile.js"
	CADL_RANCH_JS  = "cadl-ranch.js"

	TSP_COMPILE_PATH = ".scripts/tspcompile.js"
	CADL_RANCH_PATH  = ".scripts/cadl-ranch.js"
)

Variables

This section is empty.

Functions

func GenerateCadlRanchTest

func GenerateCadlRanchTest(typepsecGoPath, cadlRanchSpecsPath string) error

添加一个resourcemanager的cadl-ranch test

  1. 指定 typespec-go path
  2. 指定要生成的 cadl-ranch-specs path

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL