Skip to content

Commit

Permalink
chore: merge handle Atlas config functions
Browse files Browse the repository at this point in the history
  • Loading branch information
luantranminh committed Sep 29, 2024
1 parent dbc532f commit d8381ef
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,10 @@ func (i *InitActionCmd) setAtlasConfig(ctx context.Context, configs []string, cr
if len(configs) == 0 {
return nil
}
return i.handleAtlasConfig(ctx, configs, cr)
}

func (i *InitActionCmd) handleAtlasConfig(ctx context.Context, configs []string, cr RepoExplorer) error {
config, err := i.chooseConfig(configs)
if err != nil || config == "" {
return err
}
i.env.Path = config
envs, err := i.getEnvs(ctx, config, cr)
if err != nil {
return err
Expand Down

0 comments on commit d8381ef

Please sign in to comment.