From c71133b034e918ca87c10a28453fbc15e7fdabe1 Mon Sep 17 00:00:00 2001 From: Aleksa Arsic Date: Wed, 30 Aug 2023 17:20:25 +0200 Subject: [PATCH] Added additional logging --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index 04ffe90..73a9674 100644 --- a/main.go +++ b/main.go @@ -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 {