File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 11import { Command , flags } from "@contentstack/cli-command" ;
2- const { configHandler } = require ( "@contentstack/cli-utilities" ) ;
32import { inquireAlias , inquireModule } from "../../../utils/interactive" ;
43import connectStack from "../../../utils/connect-stack" ;
54const regexMessages = require ( "../../../../messages/index.json" ) . validateRegex ;
@@ -37,19 +36,6 @@ export default class ValidateRegex extends Command {
3736 "$ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g -f <path/to/the/directory>" ,
3837 ] ;
3938
40- async getToken ( managementTokenAlias : string ) {
41- const listOfTokens = configHandler . get ( "tokens" ) ;
42- if ( managementTokenAlias && listOfTokens [ managementTokenAlias ] ) {
43- return {
44- name : managementTokenAlias ,
45- apiKey : listOfTokens [ managementTokenAlias ] . apiKey ,
46- token : listOfTokens [ managementTokenAlias ] . token ,
47- } ;
48- } else {
49- throw new Error ( "Invalid management token alias" ) ;
50- }
51- }
52-
5339 async run ( ) {
5440 const commandObject = this . parse ( ValidateRegex ) ;
5541
You can’t perform that action at this time.
0 commit comments