Browse Source

cli - chalk color change II

ondratra 3 years ago
parent
commit
840c183a53

+ 3 - 1
cli/src/base/UploadCommandBase.ts

@@ -263,7 +263,9 @@ export default abstract class UploadCommandBase extends ContentDirectoryCommandB
     )
     if (rejectedAssetsOutput.length) {
       this.warn(
-        `Some assets were not uploaded succesfully. Try reuploading them with ${chalk.magentaBright('content:reuploadAssets')}!`
+        `Some assets were not uploaded succesfully. Try reuploading them with ${chalk.magentaBright(
+          'content:reuploadAssets'
+        )}!`
       )
       console.log(rejectedAssetsOutput)
       const outputPath = inputFilePath.replace('.json', `${outputFilePostfix}.json`)

+ 5 - 1
cli/src/commands/content/addCuratorToGroup.ts

@@ -37,6 +37,10 @@ export default class AddCuratorToGroupCommand extends ContentDirectoryCommandBas
     await this.requestAccountDecoding(account)
     await this.sendAndFollowNamedTx(account, 'content', 'addCuratorToGroup', [groupId, curatorId])
 
-    console.log(chalk.green(`Curator ${chalk.magentaBright(curatorId)} succesfully added to group ${chalk.magentaBright(groupId)}!`))
+    console.log(
+      chalk.green(
+        `Curator ${chalk.magentaBright(curatorId)} succesfully added to group ${chalk.magentaBright(groupId)}!`
+      )
+    )
   }
 }

+ 5 - 1
cli/src/commands/content/removeCuratorFromGroup.ts

@@ -41,6 +41,10 @@ export default class RemoveCuratorFromGroupCommand extends ContentDirectoryComma
     await this.requestAccountDecoding(account)
     await this.sendAndFollowNamedTx(account, 'content', 'removeCuratorFromGroup', [groupId, curatorId])
 
-    this.log(chalk.green(`Curator ${chalk.magentaBright(curatorId)} successfully removed from group ${chalk.magentaBright(groupId)}!`))
+    this.log(
+      chalk.green(
+        `Curator ${chalk.magentaBright(curatorId)} successfully removed from group ${chalk.magentaBright(groupId)}!`
+      )
+    )
   }
 }

+ 3 - 1
cli/src/commands/working-groups/evictWorker.ts

@@ -49,7 +49,9 @@ export default class WorkingGroupsEvictWorker extends WorkingGroupsCommandBase {
 
     this.log(chalk.green(`Worker ${chalk.magentaBright(workerId)} has been evicted!`))
     if (shouldSlash) {
-      this.log(chalk.green(`Worker stake totalling ${chalk.magentaBright(formatBalance(groupMember.stake))} has been slashed!`))
+      this.log(
+        chalk.green(`Worker stake totalling ${chalk.magentaBright(formatBalance(groupMember.stake))} has been slashed!`)
+      )
     }
   }
 }

+ 3 - 1
cli/src/commands/working-groups/startAcceptingApplications.ts

@@ -32,7 +32,9 @@ export default class WorkingGroupsStartAcceptingApplications extends WorkingGrou
     await this.sendAndFollowNamedTx(account, apiModuleByGroup[this.group], 'acceptApplications', [openingId])
 
     this.log(
-      chalk.green(`Opening ${chalk.magentaBright(openingId)} status changed to: ${chalk.magentaBright('Accepting Applications')}`)
+      chalk.green(
+        `Opening ${chalk.magentaBright(openingId)} status changed to: ${chalk.magentaBright('Accepting Applications')}`
+      )
     )
   }
 }

+ 3 - 1
cli/src/commands/working-groups/startReviewPeriod.ts

@@ -31,6 +31,8 @@ export default class WorkingGroupsStartReviewPeriod extends WorkingGroupsCommand
 
     await this.sendAndFollowNamedTx(account, apiModuleByGroup[this.group], 'beginApplicantReview', [openingId])
 
-    this.log(chalk.green(`Opening ${chalk.magentaBright(openingId)} status changed to: ${chalk.magentaBright('In Review')}`))
+    this.log(
+      chalk.green(`Opening ${chalk.magentaBright(openingId)} status changed to: ${chalk.magentaBright('In Review')}`)
+    )
   }
 }