Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 66dc98f

Browse files
author
JSpru
authored
Update descriptions and flags to match specs (#393)
1 parent d669410 commit 66dc98f

File tree

18 files changed

+59
-59
lines changed

18 files changed

+59
-59
lines changed

packages/luis/src/commands/luis/application/create.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export default class LuisApplicationCreate extends Command {
1818
static flags: any = {
1919
help: flags.help({char: 'h'}),
2020
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
21-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
22-
name: flags.string({description: 'LUIS application name'}),
23-
culture: flags.string({description: 'LUIS application culture'}),
24-
description: flags.string({description: 'LUIS application description'}),
25-
versionId: flags.string({description: 'LUIS application initial version Id'}),
26-
tokenizerVersion: flags.string({description: 'Version specifies how sentences are tokenized.'}),
21+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
22+
name: flags.string({description: 'Name of LUIS application'}),
23+
culture: flags.string({description: 'Specify culture language (default: en-us)'}),
24+
description: flags.string({description: 'Description of LUIS application'}),
25+
versionId: flags.string({description: 'LUIS version Id. (mandatory, defaults to config:LUIS:versionId)'}),
26+
tokenizerVersion: flags.string({description: 'Version specifies how sentences are tokenized (optional). See also: https://aka.ms/luistokens'}),
2727
}
2828

2929
async run() {

packages/luis/src/commands/luis/application/delete.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export default class LuisApplicationDelete extends Command {
1616

1717
static flags: any = {
1818
help: flags.help({char: 'h'}),
19-
appId: flags.string({description: 'LUIS application Id'}),
19+
appId: flags.string({description: 'LUIS application Id (mandatory, defaults to config:LUIS:appId)'}),
2020
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
21-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
21+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
2222
}
2323

2424
async run() {

packages/luis/src/commands/luis/application/import.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {CLIError, Command, flags} from '@microsoft/bf-cli-command'
88
const utils = require('../../../utils/index')
99

1010
export default class LuisApplicationImport extends Command {
11-
static description = 'Imports an application to LUIS'
11+
static description = 'Imports LUIS application from JSON or LU content.'
1212

1313
static examples = [`
1414
$ bf luis:application:import --endpoint {ENDPOINT} --subscriptionKey {SUBSCRIPTION_KEY} --name {NAME} --in {PATH_TO_JSON}
@@ -18,9 +18,9 @@ export default class LuisApplicationImport extends Command {
1818
static flags: any = {
1919
help: flags.help({char: 'h'}),
2020
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
21-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
22-
name: flags.string({description: 'LUIS application name'}),
23-
in: flags.string({char: 'i', description: 'File path containing LUIS application contents'})
21+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
22+
name: flags.string({description: 'LUIS application name (optional)'}),
23+
in: flags.string({char: 'i', description: 'File path containing LUIS application contents, uses STDOUT if not specified (mandatory)'})
2424
}
2525

2626
async run() {

packages/luis/src/commands/luis/application/list.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export default class LuisApplicationList extends Command {
1818
static flags: any = {
1919
help: flags.help({char: 'h'}),
2020
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
21-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
22-
out: flags.string({char: 'o', description: 'Path to the directory where the exported file will be placed.'}),
21+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
22+
out: flags.string({char: 'o', description: 'Output results to specified file in JSON format, otherwise prints to STDOUT (optional)'}),
2323
force: flags.boolean({char: 'f', description: 'If --out flag is provided with the path to an existing file, overwrites that file', default: false}),
24-
skip: flags.string({description: 'The number of entries to skip. The default is 0 (no skips)'}),
25-
take: flags.string({description: 'The number of etnries to return. The maximum page size is 500. The default is 100.'}),
24+
skip: flags.string({description: 'Number of entries to skip. Default: 0 (no skips)'}),
25+
take: flags.string({description: 'Number of etnries to return. Maximum page size is 500. Default: 100'}),
2626
}
2727

2828
async run() {

packages/luis/src/commands/luis/application/publish.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {CLIError, Command, flags} from '@microsoft/bf-cli-command'
88
const utils = require('../../../utils/index')
99

1010
export default class LuisApplicationPublish extends Command {
11-
static description = 'Publishes a specific version of the application'
11+
static description = 'Publishes application\'s version'
1212

1313
static examples = [`
1414
$ bf luis:application:publish --endpoint {ENDPOINT} --subscriptionKey {SUBSCRIPTION_KEY} --versionId {INITIAL_VERSION_ID} --appId {APP_ID} --staging {BOOLEAN}
@@ -17,9 +17,9 @@ export default class LuisApplicationPublish extends Command {
1717
static flags: any = {
1818
help: flags.help({char: 'h'}),
1919
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
20-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
21-
appId: flags.string({description: 'LUIS applicaton id'}),
22-
versionId: flags.string({description: 'LUIS application initial version Id'}),
20+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
21+
appId: flags.string({description: 'LUIS application Id (mandatory, defaults to config:LUIS:appId)'}),
22+
versionId: flags.string({description: 'Version to publish (mandatory, defaults to config:LUIS:versionId)'}),
2323
staging: flags.string({description: 'Publishes application version to Staging slot, otherwise publish to production (default: false)'}),
2424
direct: flags.string({description: 'Available only in direct version query. Do not publish to staging or production (default: false)'})
2525
}

packages/luis/src/commands/luis/application/rename.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export default class LuisApplicationRename extends Command {
1717
static flags: any = {
1818
help: flags.help({char: 'h'}),
1919
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
20-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
21-
appId: flags.string({description: 'LUIS applicaton id'}),
22-
name: flags.string({description: 'LUIS application name'}),
23-
description: flags.string({description: 'LUIS application description'}),
20+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
21+
appId: flags.string({description: 'LUIS application Id (mandatory, defaults to config:LUIS:appId)'}),
22+
name: flags.string({description: 'Name of LUIS application (mandatory)'}),
23+
description: flags.string({description: 'Description of LUIS application (mandatory)'}),
2424
}
2525

2626
async run() {

packages/luis/src/commands/luis/endpoints/list.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export default class LuisEndpointsList extends Command {
1717
static flags: any = {
1818
help: flags.help({char: 'h'}),
1919
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
20-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
21-
appId: flags.string({description: 'LUIS application Id'}),
22-
out: flags.string({char: 'o', description: 'Path to the directory where the exported file will be placed.'}),
20+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
21+
appId: flags.string({description: 'LUIS application Id (mandatory, defaults to config:LUIS:appId)'}),
22+
out: flags.string({char: 'o', description: 'Output results to specified file in JSON format, otherwise prints to STDOUT (optional)'}),
2323
force: flags.boolean({char: 'f', description: 'If --out flag is provided with the path to an existing file, overwrites that file', default: false}),
2424
}
2525

packages/luis/src/commands/luis/version/clone.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export default class LuisVersionClone extends Command {
1616

1717
static flags: any = {
1818
help: flags.help({char: 'h'}),
19-
appId: flags.string({description: 'LUIS application Id'}),
20-
versionId: flags.string({description: 'LUIS version Id'}),
21-
targetVersionId: flags.string({description: 'LUIS target version Id'}),
19+
appId: flags.string({description: 'LUIS application Id (mandatory, defaults to config:LUIS:appId)'}),
20+
versionId: flags.string({description: 'Source version to clone (mandatory, defaults to config:LUIS:versionId)'}),
21+
targetVersionId: flags.string({description: 'Destination version to create (mandatory)'}),
2222
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
23-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
23+
subscriptionKey: flags.string({description: 'LUIS authoring (Ocp-Apim-subscription) key'}),
2424
}
2525

2626
async run() {

packages/luis/src/commands/luis/version/delete.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ import {CLIError, Command, flags} from '@microsoft/bf-cli-command'
88
const utils = require('../../../utils/index')
99

1010
export default class LuisVersionDelete extends Command {
11-
static description = 'Deletes a version of a LUIS application'
11+
static description = 'Deletes a LUIS application version'
1212

1313
static examples = [`
1414
$ bf luis:version:delete --appId {APP_ID} --versionId {VERSION_ID} --endpoint {ENDPOINT} --subscriptionKey {SUBSCRIPTION_KEY}
1515
`]
1616

1717
static flags: any = {
1818
help: flags.help({char: 'h'}),
19-
appId: flags.string({description: 'LUIS application Id'}),
20-
versionId: flags.string({description: 'LUIS application version Id'}),
19+
appId: flags.string({description: 'LUIS application Id (mandatory, defaults to config:LUIS:appId)'}),
20+
versionId: flags.string({description: 'Version to delete (mandatory)'}),
2121
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
22-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
22+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
2323
}
2424

2525
async run() {

packages/luis/src/commands/luis/version/export.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export default class LuisVersionExport extends Command {
1616

1717
static flags: any = {
1818
help: flags.help({char: 'h'}),
19-
appId: flags.string({description: 'LUIS application Id'}),
20-
versionId: flags.string({description: 'LUIS application version Id'}),
21-
out: flags.string({char: 'o', description: 'Path to the directory where the exported file will be placed.'}),
22-
force: flags.boolean({char: 'f', description: 'If --out flag is provided with the path to an existing file, overwrites that file', default: false}),
19+
appId: flags.string({description: 'LUIS application Id (mandatory, defaults to config:LUIS:appId)'}),
20+
versionId: flags.string({description: 'Version to export (mandatory, defaults to config:LUIS:versionId)'}),
21+
out: flags.string({char: 'o', description: 'Save exported application to specified file, uses STDOUT if not specified (optional)'}),
22+
force: flags.boolean({char: 'f', description: 'Overwrites output file if exists, otherwise creates a parallel numbered file (optional)', default: false}),
2323
endpoint: flags.string({description: 'LUIS endpoint hostname'}),
24-
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
24+
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (mandatory, default: config:LUIS:subscriptionKey)'}),
2525
}
2626

2727
async run() {

0 commit comments

Comments
 (0)