Skip to content

Commit

Permalink
Add license to files (#128)
Browse files Browse the repository at this point in the history
* Generate function from OpenAPI

* Small fixes

* Release 0.1.6

* Small fixes

* Samll fixes and changes

* Add license
  • Loading branch information
RupengLiu authored Oct 13, 2020
1 parent 7033cc3 commit a65f212
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/commands/generateFunctions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import * as fse from 'fs-extra';
import * as path from 'path';
import * as vscode from 'vscode';
Expand Down Expand Up @@ -80,8 +85,8 @@ export async function generateFunctions(node?: ApiTreeItem): Promise<void> {
},
async () => {
const args: string[] = [];
args.push(`--input-file:${openAPIFilePath} --version:3.0.6314`);
args.push(`--output-folder:${uris[0].fsPath}`);
args.push(`--input-file:${cpUtils.wrapArgInQuotes(openAPIFilePath)}`);
args.push(`--output-folder:${cpUtils.wrapArgInQuotes(uris[0].fsPath)}`);

switch (language.label) {
case languageTypes.TypeScript:
Expand Down Expand Up @@ -132,8 +137,8 @@ async function askFolder(): Promise<Uri[]> {
}

async function askJavaNamespace(): Promise<string> {
const namespacePrompt: string = localize('namespacePrompt', 'Enter Java namespace folder.');
const defaultName = "com.microsoft.azure.stencil";
const namespacePrompt: string = localize('namespacePrompt', 'Enter Java Package Name.');
const defaultName = "com.function";
return (await ext.ui.showInputBox({
prompt: namespacePrompt,
value: defaultName,
Expand All @@ -146,7 +151,7 @@ async function askJavaNamespace(): Promise<string> {

async function askCSharpNamespace(): Promise<string> {
const namespacePrompt: string = localize('namespacePrompt', 'Enter CSharp namespace folder.');
const defaultName = "Microsoft.Azure.Stencil";
const defaultName = "Company.Function";
return (await ext.ui.showInputBox({
prompt: namespacePrompt,
value: defaultName,
Expand Down

0 comments on commit a65f212

Please sign in to comment.