|
| 1 | +import { FlagInput } from '@contentstack/cli-utilities/node_modules/@oclif/core/lib/interfaces/parser'; |
1 | 2 | import { Command } from "@contentstack/cli-command"; |
2 | | -import { flags as _flags } from '@contentstack/cli-utilities'; |
| 3 | +import { flags } from '@contentstack/cli-utilities'; |
3 | 4 | import { inquireAlias, inquireModule } from "../../../utils/interactive"; |
4 | 5 | import connectStack from "../../../utils/connect-stack"; |
5 | 6 | const regexMessages = require("../../../../messages/index.json").validateRegex; |
6 | 7 |
|
7 | 8 | export default class ValidateRegex extends Command { |
8 | 9 | static description = regexMessages.command.description; |
9 | 10 |
|
10 | | - static flags = { |
11 | | - help: _flags.help({ char: "h", description: regexMessages.command.help }), |
12 | | - alias: _flags.string({ |
| 11 | + static flags: FlagInput = { |
| 12 | + help: flags.help({ char: "h", description: regexMessages.command.help }), |
| 13 | + alias: flags.string({ |
13 | 14 | char: "a", |
14 | 15 | description: regexMessages.command.alias, |
15 | 16 | }), |
16 | | - contentType: _flags.boolean({ |
| 17 | + contentType: flags.boolean({ |
17 | 18 | char: "c", |
18 | 19 | description: regexMessages.command.contentTypes, |
19 | 20 | }), |
20 | | - globalField: _flags.boolean({ |
| 21 | + globalField: flags.boolean({ |
21 | 22 | char: "g", |
22 | 23 | description: regexMessages.command.globalFields, |
23 | 24 | }), |
24 | | - filePath: _flags.string({ |
| 25 | + filePath: flags.string({ |
25 | 26 | char: "f", |
26 | 27 | description: regexMessages.command.filePath, |
27 | 28 | }), |
|
0 commit comments