Enable multi-account migration

This commit is contained in:
Sam Coe 2023-11-01 12:41:07 +01:00 committed by William Martin
parent 68e30beac4
commit d2ff55737c
3 changed files with 17 additions and 11 deletions

View file

@ -56,13 +56,12 @@ func mainRun() exitCode {
ctx := context.Background()
// cfg, err := cmdFactory.Config()
// if err != nil {
// fmt.Fprintf(stderr, "failed to load configuration to attempt migration: %s\n", err)
// }
// if err := cfg.MigrateMultiAccount(); err != nil {
// fmt.Fprintf(stderr, "failed to migrate configuration: %s\n", err)
// }
if cfg, err := cmdFactory.Config(); err == nil {
if err := cfg.MigrateMultiAccount(); err != nil {
fmt.Fprintf(stderr, "failed to migrate configuration: %s\n", err)
return exitError
}
}
updateCtx, updateCancel := context.WithCancel(ctx)
defer updateCancel()