Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/commands/repo-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 3 additions & 0 deletions test/repo-create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
Loading