Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

[Botskills] Add language argument back to disconnect command #1510

Merged
merged 1 commit into from
Jun 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/typescript/botskills/docs/connect-disconnect.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ botskills disconnect [option]
| --ts | Determine your assistant project structure to be a TypeScript-like structure
| --noTrain | (OPTIONAL) Determine whether the skills connected are not going to be trained (by default they are trained) |
| --dispatchName [name] | (OPTIONAL) Name of your assistant's '.dispatch' file (defaults to the name displayed in your Cognitive Models file) |
| --language [language] | (OPTIONAL) Locale used for LUIS culture (defaults to 'en-us') |
| --dispatchFolder [path] | (OPTIONAL) Path to the folder containing your assistant's '.dispatch' file (defaults to './deployment/resources/dispatch/en' inside your assistant folder) |
| --outFolder [path] | (OPTIONAL) Path for any output file that may be generated (defaults to your assistant's root folder) |
| --lgOutFolder [path] | (OPTIONAL) Path for the LuisGen output (defaults to a 'service' folder inside your assistant's folder) |
Expand Down
4 changes: 1 addition & 3 deletions lib/typescript/botskills/src/botskills-disconnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ program
.option('--ts', 'Determine your assistant project structure to be a TypeScript-like structure')
.option('--noTrain', '[OPTIONAL] Determine whether the skills connected are not going to be trained (by default they are trained)')
.option('--dispatchName [name]', '[OPTIONAL] Name of your assistant\'s \'.dispatch\' file (defaults to the name displayed in your Cognitive Models file)')
.option('--language [language]', '[OPTIONAL] Locale used for LUIS culture (defaults to \'en-us\')')
.option('--dispatchFolder [path]', '[OPTIONAL] Path to the folder containing your assistant\'s \'.dispatch\' file (defaults to \'./deployment/resources/dispatch/en\' inside your assistant folder)')
.option('--outFolder [path]', '[OPTIONAL] Path for any output file that may be generated (defaults to your assistant\'s root folder)')
.option('--lgOutFolder [path]', '[OPTIONAL] Path for the LuisGen output (defaults to a \'service\' folder inside your assistant\'s folder)')
Expand Down Expand Up @@ -113,9 +114,6 @@ const language: string = args.language || 'en-us';
configuration.language = language;
const languageCode: string = (language.split('-'))[0];

// luisFolder validation
configuration.luisFolder = args.luisFolder || join(configuration.outFolder, 'Deployment', 'Resources', 'Skills', languageCode);

// dispatchFolder validation
configuration.dispatchFolder = args.dispatchFolder || join(configuration.outFolder, 'Deployment', 'Resources', 'Dispatch', languageCode);

Expand Down