Skip to content
Merged
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
16 changes: 8 additions & 8 deletions src/commands/tsgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
static flags: any = {
'token-alias': flags.string({
char: 'a',
description: 'delivery token alias',
description: '(mandatory) Delivery token alias.',
hidden: false,
multiple: false,
required: true,
}),

output: flags.string({
char: 'o',
description: 'full path to output',
description: '(mandatory) The full path to output.',
hidden: false,
multiple: false,
required: true,
}),

prefix: flags.string({
char: 'p',
description: 'interface prefix, e.g. "I"',
description: '(optional) Interface prefix, e.g., "I".',
hidden: false,
multiple: false,
default: '',
Expand All @@ -43,31 +43,31 @@ export default class TypeScriptCodeGeneratorCommand extends Command {

doc: flags.boolean({
char: 'd',
description: 'include documentation comments',
description: '(optional) Include documentation comments. By default, this flag is enabled.',
default: true,
allowNo: true,
}),

branch: flags.string({
description: 'branch',
description: '(optional) The name of the branch to be used.',
hidden: false,
multiple: false,
}),

'include-system-fields': flags.boolean({
description: 'include system fields in generated types',
description: '(optional) Include system fields in generated types.',
default: false,
}),

'api-type': flags.string({
default: 'rest',
multiple: false,
options: ['rest', 'graphql'],
description: '[Optional] Please enter an API type to generate the type definitions.',
description: '[optional] The API type to generate type definitions. Supported options: rest, graphql.',
}),

namespace: flags.string({
description: '[Optional]Please enter a namespace for the GraphQL API type to organize the generated types.',
description: '[optional] The namespace for the GraphQL API type to organize the generated types.',
}),
};

Expand Down