Skip to content

Add a --name option to prismic init #280

Description

@angeloashmore

Is your feature request related to a problem? Please describe.

prismic init creates a repository with a generated domain and uses the domain as the display name. There is no option to set the display name at creation time. prismic repo create has --name for this. prismic init does not.

In the recorded eval runs for #276, 3 of 6 failed trials stopped to ask the user for a repository name. The agent had no option to pass one.

Describe the solution you'd like

Add a --name option to prismic init. Pass the value to createRepo as the display name, the same as prismic repo create --name.

npx prismic init --name "Marketing Site"

Describe alternatives you've considered

  • Keep init as it is. Run prismic repo set-name "Marketing Site" after init. This works but takes two commands.
  • Make init explain in its help that the domain is generated and that repo set-name renames the repository. This is the plan in evals: agent stops before it runs prismic init #276.

Additional context

Found while designing the fix for #276. Evaluate at a later time. The --repo option connects to an existing repository by domain, so --name must not be confused with it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions