Skip to content

Commit

Permalink
updated preview command descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aumkar committed Sep 25, 2023
1 parent 4d741b9 commit a447653
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/cli/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,27 +283,25 @@ yargs(hideBin(process.argv))
},
)
.command(
// TODO: Validate all descriptions
"document <cmd> [options]",
"Enables you to manage documents",
"Enables you to manage documents for a PCC Project",
(yargs) => {
yargs
.strictCommands()
.demandCommand()
.command(
"preview <id>",
"Generate preview url",
"Generates preview link for a given document ID.",
(yargs) => {
yargs
.strictCommands()
.positional("<id>", {
describe:
"ID of the document for which you want to see preview link",
describe: "ID of the document",
demandOption: true,
type: "string",
})
.option("baseUrl", {
describe: "Base URL for the preview link",
describe: "Base URL for the generated preview link",
type: "string",
demandOption: false,
});
Expand Down

0 comments on commit a447653

Please sign in to comment.