From 9857217f20866b69148aaa88525674250f823916 Mon Sep 17 00:00:00 2001 From: lgdd Date: Mon, 29 Apr 2024 14:28:09 +0200 Subject: [PATCH] fix: output printed twice when running 'lfr c cx' --- internal/cmd/create/create_client_extension.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/cmd/create/create_client_extension.go b/internal/cmd/create/create_client_extension.go index f839ccb..4534b4a 100644 --- a/internal/cmd/create/create_client_extension.go +++ b/internal/cmd/create/create_client_extension.go @@ -50,9 +50,10 @@ func generateClientExtension(cmd *cobra.Command, args []string) { name = args[2] } - scaffold.CreateClientExtension(sample, name) - - logger.PrintlnInfo("\nšŸ’”Checkout this tool to help you with client extensions development: https://github.com/bnheise/ce-cli") + if len(args) > 0 { + scaffold.CreateClientExtension(sample, name) + logger.PrintlnInfo("\nšŸ’”Checkout this tool to help you with client extensions development: https://github.com/bnheise/ce-cli") + } } func validateSample(sampleName string) {