소스 검색

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