EmberTown/ember-hearth

[coming soon] ember help --json

Closed this issue · 10 comments

FYI this may be of interest: ember-cli/ember-cli#4576

Squee!

locks commented

It hath landed!

is this actually used anywhere?

ah, looked at the wrong branch apparently 😉

but you are only using ember help --json not the special cases like ember help generate model --json for example, correct?

locks commented

@Turbo87 as far as I know that's correct, ember help --json already provides all the available help documentation.

ember help --json already provides all the available help documentation

I agree on that. I was wondering if anyone actually used something like ember help generate --json, because it makes the code in ember-cli quite a bit more complicated and I don't really see any reason for keeping it.

locks commented

Oh, I agree. If I had enough time I'd help improve the programmatic API instead.

[edit] Well, I guess that wouldn't help command-line usage of ember-cli, but I meant separating the JSON outputting. At the moment we're shelling it out and parsing the output, which seems unnecessary.

@locks I've opened ember-cli/ember-cli#5615, extracting the JSON generation code. We might be able to cache the output in a file and regenerate that file whenever addons are installed.

see also ember-cli/ember-cli#4709 for the origin of that idea