Skip to content

Allow running from Dart code. #1609

Closed
@isoos

Description

@isoos

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?

Activity

added
type-enhancementA request for a change that isn't a bug
P3A lower priority bug or feature request
P2A bug or feature request we're likely to work on
and removed
P3A lower priority bug or feature request
on Feb 22, 2018
jcollins-g

jcollins-g commented on Feb 23, 2018

@jcollins-g
Contributor

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

jcollins-g

jcollins-g commented on Apr 19, 2018

@jcollins-g
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ontype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @isoos@jcollins-g

      Issue actions

        Allow running from Dart code. · Issue #1609 · dart-lang/dartdoc