Pārlūkot izejas kodu

CLI: Small comments / description fixes

Leszek Wiesner 3 gadi atpakaļ
vecāks
revīzija
c6d982b642

+ 1 - 1
cli/src/commands/forum/addPost.ts

@@ -35,13 +35,13 @@ export default class ForumAddPostCommand extends ForumCommandBase {
     await this.ensureCategoryMutable(categoryId)
     const member = await this.getRequiredMemberContext()
 
+    // Replies not supported atm
     const metadata: IForumPostMetadata = { text }
     this.jsonPrettyPrint(JSON.stringify({ categoryId, threadId, text, editable }))
     await this.requireConfirmation('Do you confirm the provided input?', true)
 
     const result = await this.sendAndFollowTx(
       await this.getDecodedPair(member.membership.controller_account),
-      // Polls not supported atm
       api.tx.forum.addPost(member.id, categoryId, threadId, metadataToBytes(ForumPostMetadata, metadata), editable)
     )
 

+ 3 - 1
cli/src/commands/forum/categories.ts

@@ -7,7 +7,9 @@ import { Tree } from 'cli-ux/lib/styled/tree'
 import { displayTable } from '../../helpers/display'
 
 export default class ForumCategoriesCommand extends ForumCommandBase {
-  static description = 'List existing forum categories.'
+  static description =
+    'List existing forum categories by parent id (root categories by default) or displays a category tree.'
+
   static flags = {
     parentCategoryId: flags.integer({
       char: 'p',