This commit is contained in:
Zim Kalinowski 2020-01-21 15:35:37 +08:00
Родитель 6164fe67e2
Коммит 43850b39bb
4 изменённых файлов: 11 добавлений и 12 удалений

Просмотреть файл

@ -5,18 +5,17 @@ See documentation [here](doc/00-overview.md)
``` yaml
use-extension:
"@autorest/modelerfour": "~4.1.60"
"cli.common": "$(this-folder)"
"clicommon": "$(this-folder)"
pipeline-model: v3
clicommon: true
pipeline:
cli.common:
clicommon:
input: modelerfour
output-artifact: source-file-common
scope: clicommon
cli.common/emitter:
input: cli.common
clicommon/emitter:
input: clicommon
scope: scope-clicommon
scope-clicommon:

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@autorest/cli.common",
"version": "1.0.14",
"name": "@autorest/clicommon",
"version": "0.1.0",
"description": "Autorest Azure Cli Common Module",
"main": "dist/index.js",
"engines": {
@ -23,7 +23,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Azure/autorest.cli.common.git"
"url": "git+https://github.com/Azure/autorest.clicommon.git"
},
"keywords": [
"autorest",

Просмотреть файл

@ -95,7 +95,7 @@
"telemetryEnabled": false,
"projects": [
{
"packageName": "@autorest/cli.common",
"packageName": "@autorest/clicommon",
"projectFolder": ".",
"reviewCategory": "production",
"shouldPublish": true

Просмотреть файл

@ -8,7 +8,7 @@ export type FileCallback = (path: string, rows: string[]) => void;
const extension = new AutoRestExtension();
extension.Add("cli.common", async autoRestApi => {
extension.Add("clicommon", async autoRestApi => {
try
@ -20,12 +20,12 @@ extension.Add("cli.common", async autoRestApi => {
autoRestApi.Message({
Channel: Channel.Warning,
Text: "Hello World cli.common! The `debug` flag is " + (isDebugFlagSet ? "set" : "not set"),
Text: "Hello World clicommon! The `debug` flag is " + (isDebugFlagSet ? "set" : "not set"),
});
autoRestApi.Message({
Channel: Channel.Warning,
Text: "cli.common settings " + JSON.stringify(cliCommonSettings)
Text: "clicommon settings " + JSON.stringify(cliCommonSettings)
});