Skip to content

Commit 12443f0

Browse files
authored
enhance(v2ex): add content, member, created, node fields to topic output (#648)
- Add content field to display topic body text - Add member field to show topic author - Add created field to show topic creation timestamp - Add node field to show topic category - Add id field for consistency with hot/latest commands This makes v2ex topic command return meaningful details that are not available in hot/latest listings.
1 parent ee0c2b6 commit 12443f0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/clis/v2ex/topic.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ pipeline:
1919
id: ${{ args.id }}
2020

2121
- map:
22+
id: ${{ item.id }}
2223
title: ${{ item.title }}
24+
content: ${{ item.content }}
25+
member: ${{ item.member.username }}
26+
created: ${{ item.created }}
27+
node: ${{ item.node.title }}
2328
replies: ${{ item.replies }}
2429
url: ${{ item.url }}
2530

2631
- limit: 1
2732

28-
columns: [title, replies, url]
33+
columns: [id, title, content, member, created, node, replies, url]

0 commit comments

Comments
 (0)