@@ -39,7 +39,8 @@ export default class Logs extends BaseCommand<typeof Logs> {
3939 default : 's' ,
4040 multiple : false ,
4141 options : [ 'd' , 's' ] ,
42- description : 'Type of flags to show logs. By default, these are server logs. Options [d - deployment logs, s - server logs]' ,
42+ description :
43+ 'Type of flags to show logs. By default, these are server logs. Options [d - deployment logs, s - server logs]' ,
4344 } ) ,
4445 org : Flags . string ( {
4546 description : '[Optional] Provide the organization UID' ,
@@ -67,7 +68,7 @@ export default class Logs extends BaseCommand<typeof Logs> {
6768
6869 await this . checkAndSetProjectDetails ( ) ;
6970
70- let logPolling = new LogPolling ( {
71+ const logPolling = new LogPolling ( {
7172 apolloLogsClient : this . apolloLogsClient ,
7273 apolloManageClient : this . apolloClient ,
7374 config : this . sharedConfig ,
@@ -87,7 +88,8 @@ export default class Logs extends BaseCommand<typeof Logs> {
8788 }
8889
8990 /**
90- * @method checkAndSetProjectDetails - validate and set project details like organizationUid, uid, environment, deployment
91+ * @method checkAndSetProjectDetails
92+ * validate and set project details like organizationUid, uid, environment, deployment
9193 *
9294 * @return {* } {Promise<void>}
9395 * @memberof Logs
@@ -146,7 +148,9 @@ export default class Logs extends BaseCommand<typeof Logs> {
146148 }
147149
148150 /**
149- * @method validateAndSelectEnvironment - check whether environment is validate or not. If not then option to select environment
151+ * @method validateAndSelectEnvironment
152+ * check whether environment is validate or not.
153+ * If not then option to select environment
150154 *
151155 * @return {* } {Promise<void>}
152156 * @memberof Logs
@@ -206,7 +210,7 @@ export default class Logs extends BaseCommand<typeof Logs> {
206210 const { message, msgType } = event ;
207211 if ( msgType === 'info' ) {
208212 forEach ( message , ( log : DeploymentLogResp | ServerLogResp ) => {
209- let formattedLogTimestamp = new Date ( log . timestamp ) . toISOString ( ) ?. slice ( 0 , 23 ) ?. replace ( 'T' , ' ' ) ;
213+ const formattedLogTimestamp = new Date ( log . timestamp ) . toISOString ( ) ?. slice ( 0 , 23 ) ?. replace ( 'T' , ' ' ) ;
210214 this . log ( `${ formattedLogTimestamp } : ${ log . message } ` , msgType ) ;
211215 } ) ;
212216 } else if ( msgType === 'error' ) {
@@ -231,7 +235,7 @@ export default class Logs extends BaseCommand<typeof Logs> {
231235 this . log ( 'Deployment not found!' , 'error' ) ;
232236 process . exit ( 1 ) ;
233237 } else {
234- let lastDeploymentDetails = this . sharedConfig . currentConfig . deployments [ 0 ] ;
238+ const lastDeploymentDetails = this . sharedConfig . currentConfig . deployments [ 0 ] ;
235239 if ( lastDeploymentDetails ?. node ?. uid ) {
236240 this . sharedConfig . deployment = lastDeploymentDetails . node . uid ;
237241 } else {
0 commit comments