I got this service that start with a cli command with nest commander and later at the end of the execution i need to make it emit events to rabbitmq but idk if i can have nest commander working together to rabbitmq conecction. because i see that for making nestjs commander work i have to use:
await CommandFactory.run(AppModule, {logger:['warn', 'error'],});
at main.ts and for getting rabbitmq working the documentation shows:
AppModule,
{
transport: Transport.TCP,
},
);
await app.listen();