'Samuel Rawlins' via Dart Misc
2018-10-26 17:31:47 UTC
The package-layout documentation:
https://www.dartlang.org/tools/pub/package-layout
includes the following under Public tools
<https://www.dartlang.org/tools/pub/package-layout#public-tools>:
Dart scripts placed inside of the bin directory are public. Any package
that depends on your package can run scripts from your packageâs bin
directory using pub run. *Any* package can run scripts from your packageâs
bin directory using pub global.
How does a package "use" `pub run` or "use" `pub global`? Is there some
Dart API for `pub run`ning something? I'm guessing this is a semantic
mistake. I think the author meant to write something like:
A user executing pub from within a package which depends on your package
can run scripts from your package's bin directory using pub run.
(emphasis on *user*) and
A user executing pub from any directory can run scripts from your package's
bin directory using pub global.
Is this correct? Should I file a bug? A better writer than me could
probably do it with less than 4 prepositional phrases :)
https://www.dartlang.org/tools/pub/package-layout
includes the following under Public tools
<https://www.dartlang.org/tools/pub/package-layout#public-tools>:
Dart scripts placed inside of the bin directory are public. Any package
that depends on your package can run scripts from your packageâs bin
directory using pub run. *Any* package can run scripts from your packageâs
bin directory using pub global.
How does a package "use" `pub run` or "use" `pub global`? Is there some
Dart API for `pub run`ning something? I'm guessing this is a semantic
mistake. I think the author meant to write something like:
A user executing pub from within a package which depends on your package
can run scripts from your package's bin directory using pub run.
(emphasis on *user*) and
A user executing pub from any directory can run scripts from your package's
bin directory using pub global.
Is this correct? Should I file a bug? A better writer than me could
probably do it with less than 4 prepositional phrases :)
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/CACshfx2neQUKAgF2dL5hcvrLwnQGwAXOovinnNA6sXUA-dp1eA%40mail.gmail.com.
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/CACshfx2neQUKAgF2dL5hcvrLwnQGwAXOovinnNA6sXUA-dp1eA%40mail.gmail.com.