Skip to content

Allow running from Dart code. #1609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
isoos opened this issue Feb 20, 2018 · 2 comments · Fixed by #1676
Closed

Allow running from Dart code. #1609

isoos opened this issue Feb 20, 2018 · 2 comments · Fixed by #1676
Labels
P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@isoos
Copy link
Contributor

isoos commented Feb 20, 2018

For the dartdocs.org site, it would be better if we could run dartdoc without executing a new process. The current bin/dartdoc.dart does a lot of heavy lifting, and also one-off environment setup, and copying that is not straightforward.

Is there a way to simply call a method to run dartdoc repeatedly from the Dart code?

@jcollins-g jcollins-g added type-enhancement A request for a change that isn't a bug P3 A lower priority bug or feature request P2 A bug or feature request we're likely to work on and removed P3 A lower priority bug or feature request labels Feb 22, 2018
@jcollins-g
Copy link
Contributor

Not possible at the moment; dartdoc has too many things depending on command line arguments that are assumed to be global.

@jcollins-g
Copy link
Contributor

#1676 fixes this. With that PR I think it's at least feasible to run dartdoc without fork and exec. Issues with doing so should be filed as separate bugs after that lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants