Skip to content

Commit 845aa3b

Browse files
authored
Merge pr12-review-fixes: improve index command help menu formatting
2 parents 89e6268 + 8ed221e commit 845aa3b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/bin/cmd-index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,13 @@ urlCommand.action(async (url: string, options) => {
273273

274274
// Main index command
275275
export const indexCommand = new Command("index")
276-
.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")
276+
.usage("<url | source> [options]")
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)