Cuckoo icon indicating copy to clipboard operation
Cuckoo copied to clipboard

Add support for cuckoo.yml configuration file

Open TadeasKriz opened this issue 7 years ago • 6 comments

We should add a support for configuring Cuckoo generator with YAML file (using Yams). This will make it easier to configure and run the generator as well as adding new files to mock.

TadeasKriz avatar Apr 24 '18 09:04 TadeasKriz

@TadeasKriz Sourcery already supports this. If you are thinking of spending time into this, I would suggest spending time to see if you can drop the generator in favour of Sourcery.

bsrz avatar Apr 24 '18 13:04 bsrz

My thinking was just adding a simple file with the configuration that's normally passed in through parameters. So that's a minimal change compared to replacing the whole Cuckoo Generator with Sourcery.

Again, I'm not opposed to replacing the Generator with Sourcery, but it's a huge change for our team to implement. And that simply outweighs any possible benefits it might bring.

TadeasKriz avatar Apr 24 '18 13:04 TadeasKriz

If you remove the templates from the compiled generator and load them at runtime, I might be able to find some time eventually to do a PR for this.

bsrz avatar Apr 24 '18 13:04 bsrz

Swift PM doesn't support resources (https://bugs.swift.org/browse/SR-2866) so it wouldn't be an easy change to load them at runtime.

TadeasKriz avatar Apr 24 '18 13:04 TadeasKriz

@bsarrazin I'm not sure if I understand the replacement of generator correctly. Do you mean we would completely remove Cuckoo generator binary and just use Sourcery binary with a template? If that's the case, why do you need to move the templates from compiled to runtime?

TadeasKriz avatar Apr 24 '18 13:04 TadeasKriz

Honnestly its a good idea to create yml, better than do nothing and we will be not force to use sourcery.

aiKrice avatar Jun 22 '20 06:06 aiKrice