Skip to content

[Feature] Add a subcommand to change a bucket's remote URL #6487

@woyxiang

Description

@woyxiang

Feature Request

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

Currently, after a bucket is added, its associated Git repository URL cannot be modified directly.
If I want to change a bucket's repository to another forked version, I currently have to remove and re-add the bucket, which is not very convenient.

Describe the solution you'd like

Add a subcommand such as:
scoop bucket update <bucket> <new-url>
This would allow updating the Git remote URL of an existing bucket without removing it.

Describe alternatives you've considered

Use an alias

{
"Name": "change-bucket",
"Command": "Join-Path (scoop config root_path) "buckets" | Join-Path -ChildPath $args[0] | set-location;git remote set-url origin $args[1]",
"Summary": "scoop change-bucket [bucket] [repo]"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions