Коммит
900dabe175
|
@ -10,15 +10,12 @@ use-extension:
|
||||||
pipeline-model: v3
|
pipeline-model: v3
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
modelerfour:
|
cli.common:
|
||||||
input: openapi-document/multi-api/identity
|
|
||||||
common/generate:
|
|
||||||
plugin: cli.common
|
|
||||||
input: modelerfour
|
input: modelerfour
|
||||||
output-artifact: source-file-common
|
output-artifact: source-file-common
|
||||||
|
|
||||||
common/emitter:
|
cli.common/emitter:
|
||||||
input: generate
|
input: cli.common
|
||||||
scope: scope-here
|
scope: scope-here
|
||||||
|
|
||||||
scope-here:
|
scope-here:
|
||||||
|
|
|
@ -19,14 +19,14 @@ extension.Add("cli.common", async autoRestApi => {
|
||||||
// read a setting
|
// read a setting
|
||||||
|
|
||||||
const isDebugFlagSet = await autoRestApi.GetValue("debug");
|
const isDebugFlagSet = await autoRestApi.GetValue("debug");
|
||||||
let cliCommonSettings = await autoRestApi.GetValue("cli.common");
|
let cliCommonSettings = await autoRestApi.GetValue("cli");
|
||||||
|
|
||||||
|
|
||||||
// emit messages
|
// emit messages
|
||||||
|
|
||||||
autoRestApi.Message({
|
autoRestApi.Message({
|
||||||
Channel: Channel.Warning,
|
Channel: Channel.Warning,
|
||||||
Text: "Hello World! The `debug` flag is " + (isDebugFlagSet ? "set" : "not set"),
|
Text: "Hello World cli.common! The `debug` flag is " + (isDebugFlagSet ? "set" : "not set"),
|
||||||
});
|
});
|
||||||
|
|
||||||
autoRestApi.Message({
|
autoRestApi.Message({
|
||||||
|
@ -41,7 +41,7 @@ extension.Add("cli.common", async autoRestApi => {
|
||||||
|
|
||||||
// emit a file (all input files concatenated)
|
// emit a file (all input files concatenated)
|
||||||
|
|
||||||
autoRestApi.WriteFile("myfolder/concat.txt", inputFiles.join("\n---\n"));
|
autoRestApi.WriteFile("myfolder/concatcommon.txt", inputFiles.join("\n---\n"));
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче