diff --git a/src/commands/repo-create.ts b/src/commands/repo-create.ts index c4f607e..9e93382 100644 --- a/src/commands/repo-create.ts +++ b/src/commands/repo-create.ts @@ -11,7 +11,11 @@ const MAX_DOMAIN_TRIES = 5; const config = { name: "prismic repo create", - description: "Create a new Prismic repository.", + description: ` + Create a new Prismic repository. + + The CLI picks a random domain for the new repository (for example, 0b4d7321). This is expected. The command prints the domain and the repository URL when it finishes. + `, options: { name: { type: "string", short: "n", description: "Display name for the repository" }, lang: { diff --git a/test/repo-create.test.ts b/test/repo-create.test.ts index e6f23bf..919f267 100644 --- a/test/repo-create.test.ts +++ b/test/repo-create.test.ts @@ -5,6 +5,9 @@ it("supports --help", async ({ expect, prismic }) => { const { stdout, stderr, exitCode } = await prismic("repo", ["create", "--help"]); expect(exitCode, stderr).toBe(0); expect(stdout).toContain("prismic repo create [options]"); + expect(stdout).toContain("The CLI picks a random domain for the new repository"); + expect(stdout).toContain("This is expected"); + expect(stdout).toContain("The command prints the domain and the repository URL when it finishes"); }); it("creates a repository", async ({ expect, prismic, token, host, password, onTestFinished }) => {