Skip to content

Allow using --disable-wiki when creating a repo from a template #6844

@timoguin

Description

@timoguin

Describe the feature or problem you’d like to solve

Currently, if you use the --template option when creating a repository with gh repo create, you get an error if you include the --disable-wiki option.

The command output looks like this:

the `--template` option is not supported with `--homepage`, `--team`, `--disable-issues`, or `--disable-wiki`

I don't use wikis for any of my repositories, so this forces me to have to manually disable them after repo creation.

Proposed solution

Remove this limitation so we can disable wikis. I'm guessing there is a Cobra setting that makes the --template flag mutually exclusive with the other above mentioned flags.

Can we just remove that, or is there something more complex?

Additional context

I even disabled wikis on my template repository just in case it was because of an inherited setting. It's not (since it's really just using low-level Git template functionality).

As far as the rest of the mentioned flags that also don't work when combined with --template, is there a technical reason those also couldn't be decoupled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions