@@ -67,7 +67,7 @@ export const pipelinesSetupCommand = createCommand({
6767 await setupSinkConfiguration ( config , setupConfig ) ;
6868 const created = await reviewAndCreateStreamSink ( config , setupConfig ) ;
6969 await setupSQLTransformationWithValidation ( config , setupConfig , created ) ;
70- await createPipelineIfNeeded ( config , setupConfig , created ) ;
70+ await createPipelineIfNeeded ( config , setupConfig , created , args ) ;
7171 } catch ( error ) {
7272 if ( error instanceof UserError ) {
7373 throw error ;
@@ -778,7 +778,8 @@ async function reviewAndCreateStreamSink(
778778async function createPipelineIfNeeded (
779779 config : Config ,
780780 setupConfig : SetupConfig ,
781- created : { stream ?: Stream ; sink ?: Sink }
781+ created : { stream ?: Stream ; sink ?: Sink } ,
782+ args : { env ?: string }
782783) : Promise < void > {
783784 if ( ! setupConfig . pipelineConfig ) {
784785 throw new UserError ( "Pipeline configuration is missing" ) ;
@@ -792,7 +793,7 @@ async function createPipelineIfNeeded(
792793 logger . log ( "\n✨ Setup complete!" ) ;
793794
794795 if ( created . stream ) {
795- displayUsageExamples ( created . stream , config ) ;
796+ await displayUsageExamples ( created . stream , config , args ) ;
796797 }
797798 } catch ( error ) {
798799 logger . error (
0 commit comments