Leszek Wiesner 3 years ago
parent
commit
2016817433

+ 3 - 1
cli/src/commands/account/export.ts

@@ -59,7 +59,9 @@ export default class AccountExport extends AccountsCommandBase {
         this.error(`Failed to create the export folder (${destPath})`, { exit: ExitCodes.FsOperationFailed })
       }
       for (const account of accounts) this.exportAccount(account, destPath)
-      this.log(chalk.greenBright(`All accounts successfully exported successfully to: ${chalk.magentaBright(destPath)}!`))
+      this.log(
+        chalk.greenBright(`All accounts successfully exported successfully to: ${chalk.magentaBright(destPath)}!`)
+      )
     } else {
       const destPath: string = args.path
       const choosenAccount: NamedKeyringPair = await this.promptForAccount(

+ 4 - 1
cli/src/commands/content/createChannel.ts

@@ -56,7 +56,10 @@ export default class CreateChannelCommand extends UploadCommandBase {
 
     await this.requireConfirmation('Do you confirm the provided input?', true)
 
-    const result = await this.sendAndFollowNamedTx(account, 'content', 'createChannel', [actor, channelCreationParameters])
+    const result = await this.sendAndFollowNamedTx(account, 'content', 'createChannel', [
+      actor,
+      channelCreationParameters,
+    ])
     if (result) {
       const event = this.findEvent(result, 'content', 'ChannelCreated')
       this.log(chalk.green(`Channel with id ${chalk.cyanBright(event?.data[1].toString())} successfully created!`))

+ 3 - 1
cli/src/commands/content/createChannelCategory.ts

@@ -46,7 +46,9 @@ export default class CreateChannelCategoryCommand extends ContentDirectoryComman
 
     if (result) {
       const event = this.findEvent(result, 'content', 'ChannelCategoryCreated')
-      this.log(chalk.green(`ChannelCategory with id ${chalk.cyanBright(event?.data[0].toString())} successfully created!`))
+      this.log(
+        chalk.green(`ChannelCategory with id ${chalk.cyanBright(event?.data[0].toString())} successfully created!`)
+      )
     }
   }
 }

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

@@ -79,7 +79,11 @@ export default class CreateVideoCommand extends UploadCommandBase {
 
     await this.requireConfirmation('Do you confirm the provided input?', true)
 
-    const result = await this.sendAndFollowNamedTx(account, 'content', 'createVideo', [actor, channelId, videoCreationParameters])
+    const result = await this.sendAndFollowNamedTx(account, 'content', 'createVideo', [
+      actor,
+      channelId,
+      videoCreationParameters,
+    ])
     if (result) {
       const event = this.findEvent(result, 'content', 'VideoCreated')
       this.log(chalk.green(`Video with id ${chalk.cyanBright(event?.data[2].toString())} successfully created!`))

+ 3 - 1
cli/src/commands/content/createVideoCategory.ts

@@ -46,7 +46,9 @@ export default class CreateVideoCategoryCommand extends ContentDirectoryCommandB
 
     if (result) {
       const event = this.findEvent(result, 'content', 'VideoCategoryCreated')
-      this.log(chalk.green(`VideoCategory with id ${chalk.cyanBright(event?.data[1].toString())} successfully created!`))
+      this.log(
+        chalk.green(`VideoCategory with id ${chalk.cyanBright(event?.data[1].toString())} successfully created!`)
+      )
     }
   }
 }