Skip to content

Commit

Permalink
fix: output printed twice when running 'lfr c cx'
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Apr 29, 2024
1 parent 3f3f304 commit 9857217
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/cmd/create/create_client_extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9857217

Please sign in to comment.