Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dx| 872| ui text changes #145

Merged
merged 1 commit into from
Nov 5, 2024
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
@@ -1,4 +1,4 @@
import {Command} from '@contentstack/cli-command'

Check warning on line 1 in src/commands/tsgen.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Definition for rule 'unicorn/prefer-module' was not found

Check warning on line 1 in src/commands/tsgen.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Definition for rule 'unicorn/prefer-module' was not found
import {flags} from '@contentstack/cli-utilities'
import {getGlobalFields, stackConnect, StackConnectionConfig, generateGraphQLTypeDef} from '../lib/stack/client'
import {ContentType} from '../lib/stack/schema'
Expand All @@ -18,23 +18,23 @@
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 @@

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
Loading