fern icon indicating copy to clipboard operation
fern copied to clipboard

[Feature] `generate` does not need `fern.config.json`

Open zdunecki opened this issue 1 year ago • 2 comments

Problem description

I would like to use generate without fern.config.json.

Why would it be useful?

generate command can be independent from standard fern flow. In the future this code can be used also for another use cases where folks want to use generation their way.

Describe the solution (optional)

My solution

zdunecki avatar Jan 21 '24 22:01 zdunecki

Curious to hear more about the use case. We're thinking about putting generators.yml and fern.config.json into a single file called fern.yml and wondering if this would be a more elegant solution.

https://github.com/fern-api/fern/issues/2623

dannysheridan avatar Jan 25 '24 00:01 dannysheridan

@dannysheridan

My use case is similar to how people want to use external APIs - it should be simple at first glance but super-power if you go deeper. Flexibility is also needed.

In the case of fern, I'd use core parts of your software and based on that build custom solutions. For example I don't need tokens or organization - it's too much connected with remote fern. That's why I've created offline proposal.

You did awsome job but it seems a little bit hard to extract what's important for my use case.

zdunecki avatar Jan 25 '24 15:01 zdunecki