Enable multi-account migration
This commit is contained in:
parent
68e30beac4
commit
d2ff55737c
3 changed files with 17 additions and 11 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue