Skip to content

Commit 711390a

Browse files
committed
Fix index command help menu formatting
Agent-Id: agent-f65941cf-2aac-4651-a905-32f3d8b9313d Linked-Note-Id: 26a5d7df-b154-45b3-9351-1698a06d4fd0
1 parent 89e6268 commit 711390a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bin/cmd-index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,12 @@ urlCommand.action(async (url: string, options) => {
274274
// Main index command
275275
export const indexCommand = new Command("index")
276276
.usage("<url> [options]\n ctxc index <source> [options]")
277-
.description("Index a data source\n\nExamples:\n ctxc index https://github.com/owner/repo\n ctxc index https://github.com/owner/repo -i myindex\n ctxc index github --owner x --repo y")
277+
.description("Index a data source")
278+
.addHelpText('after', `
279+
Examples:
280+
ctxc index https://github.com/owner/repo
281+
ctxc index https://github.com/owner/repo -i myindex
282+
ctxc index github --owner x --repo y`)
278283
.addCommand(urlCommand, { hidden: true })
279284
.addCommand(githubCommand)
280285
.addCommand(gitlabCommand)

0 commit comments

Comments
 (0)