Skip to content

Commit

Permalink
Added additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksa11010 committed Aug 30, 2023
1 parent d18d487 commit c71133b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ func main() {
APIKey: accountConfig.ApiKey,
}

if !scope.Pipelines && !scope.Templates && !scope.FileStore {
log.Errorf(color.RedString("You need to specify at least one type of entity to migrate!"))
log.Errorf(color.RedString("Please use -pipelines, -templates or -filestore flags"))
log.Errorf(color.RedString("If you want to migrate all entities, use -all flag"))
return
}

log.Infof("Getting projects for account %s", accountConfig.AccountIdentifier)
projects, err := api.GetAllProjects(accountConfig.AccountIdentifier)
if err != nil {
Expand Down

0 comments on commit c71133b

Please sign in to comment.