浏览代码

CLI: Small comments / description fixes

Leszek Wiesner 3 年之前
父节点
当前提交
c6d982b642
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 1 1
      cli/src/commands/forum/addPost.ts
  2. 3 1
      cli/src/commands/forum/categories.ts

+ 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',