cli / go-gh

A Go module for interacting with gh and the GitHub API from the command line.
https://pkg.go.dev/github.com/cli/go-gh/v2
MIT License
322 stars 45 forks source link

Support migrations of the config #141

Closed williammartin closed 5 months ago

williammartin commented 8 months ago

Description

This PR relates to adding multi-account support to the CLI. I am opening it for discussion, not because I am confident is done and ready to merge, though I feel relatively good about the approach.

There are two parts to this PR one:

I feel like this is a reasonable split of responsibilities, rather than pushing it all into go-gh/config (which actually tries to be structure agnostic) or pulling it all up to cli/cli (which doesn't know anything about where it would store a backup for example).

I've left comments close to the places that I think are interesting, rather than trying to describe it all here.