botframework-cli/packages/lg
Emilio Munoz 833b6bef4c
Fix for luis:version:clone and lg docs (#767)
2020-05-07 21:15:56 -07:00
..
bin mslg CLI (#644) 2020-04-27 10:53:16 +08:00
docs mslg CLI (#644) 2020-04-27 10:53:16 +08:00
src Fix for luis:version:clone and lg docs (#767) 2020-05-07 21:15:56 -07:00
test mslg CLI (#644) 2020-04-27 10:53:16 +08:00
.editorconfig mslg CLI (#644) 2020-04-27 10:53:16 +08:00
.eslintignore mslg CLI (#644) 2020-04-27 10:53:16 +08:00
.eslintrc mslg CLI (#644) 2020-04-27 10:53:16 +08:00
.gitignore mslg CLI (#644) 2020-04-27 10:53:16 +08:00
.nycrc mslg CLI (#644) 2020-04-27 10:53:16 +08:00
README.md Fix for luis:version:clone and lg docs (#767) 2020-05-07 21:15:56 -07:00
package.json mslg CLI (#644) 2020-04-27 10:53:16 +08:00
tsconfig.json mslg CLI (#644) 2020-04-27 10:53:16 +08:00

README.md

@microsoft/bf-lg-cli

This package is intended for Microsoft use only and should be consumed through @microsoft/botframework-cli. It is not designed to be consumed as an independent package.

oclif Version

Relevant docs

Commands

bf lg

Parse, collate, expand and translate lg files.

USAGE
  $ bf lg

OPTIONS
  -h, --help  lg command help

See code: src/commands/lg/index.ts

bf lg:expand

Expand one or all templates in .lg file(s). Expand an inline expression.

USAGE
  $ bf lg:expand

OPTIONS
  -f, --force              If --out flag is provided with the path to an existing file, overwrites that file
  -h, --help               lg:expand help
  -i, --in=in              (required) Folder that contains .lg file.
  -o, --out=out            Output file or folder name. If not specified stdout will be used as output
  -r, --recurse            Consider sub-folders to find .lg file(s)
  --all                    When set, all templates in the .lg file be expanded.
  --expression=expression  Inline expression provided as a string to evaluate.
  --interactive            Interactively prompt for all missing entity value references required for expansion.
  --template=template      Name of the template to expand. Template names with spaces must be enclosed in quotes.
  --testInput=testInput    Path to a JSON file containing test input for all variable references.

See code: src/commands/lg/expand.ts

bf lg:translate

Machine translate .lg files using Microsoft Translator Text API.

USAGE
  $ bf lg:translate

OPTIONS
  -f, --force                  If --out flag is provided with the path to an existing file, overwrites that file
  -h, --help                   lg:translate help
  -i, --in=in                  (required) Folder that contains .lg file.
  -o, --out=out                Output file or folder name. If not specified stdout will be used as output
  -r, --recurse                Consider sub-folders to find .lg file(s)
  --srclang=srclang            Source lang code. Auto detect if missing.
  --tgtlang=tgtlang            (required) Comma separated list of target languages.
  --translate_comments         Machine translate all comments found in .lg file
  --translate_link_text        Machine translate link description in .lg file
  --translatekey=translatekey  (required) Machine translation endpoint key.

See code: src/commands/lg/translate.ts

bf lg:verify

Verify .lg file(s) and collate them into a single file.

USAGE
  $ bf lg:verify

OPTIONS
  -f, --force    If --out flag is provided with the path to an existing file, overwrites that file
  -h, --help     lg:verify help
  -i, --in=in    (required) Folder that contains .lg file.
  -o, --out=out  Output file or folder name. If not specified stdout will be used as output
  -r, --recurse  Considere sub-folders to find .lg file(s)

See code: src/commands/lg/verify.ts