You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to activate a path package but PubApp.global() seems not to support it.
Whith PubGlobals API this would be quite easy but I can't create an instance.
There also seems no way to make use of _sdkBin to rebuild the inaccessible features in an easy way outside of Grinder.
I find it quite confusing that this class is public but can't be used.
The text was updated successfully, but these errors were encountered:
I found out that Pub.global returns an instance of PubGlobal.
I still think this is confusing. Autocompletion shows PubGlobal and it looks inviting for the task at hand, but I can't use it because it has a private constructor.
The doc of PubGlobal says
/// Access the pub global commands.
And I would like to do something like this return run_lib.run(_sdkBin('pub'), arguments: args, runOptions: runOptions); myself, but can't because _sdkBin is private.
Is there a reason _sdkBin is private?
What can be done to reduce the confusion about PubGlobal?
move the class to another file (inside src where its not directly exported)
add documentation that points to Pub.global
seaneagan
changed the title
PubGlobal should have a public constructor
Document how to use PubGlobal
May 21, 2015
I tried to activate a path package but
PubApp.global()
seems not to support it.Whith
PubGlobal
s API this would be quite easy but I can't create an instance.There also seems no way to make use of
_sdkBin
to rebuild the inaccessible features in an easy way outside of Grinder.I find it quite confusing that this class is public but can't be used.
The text was updated successfully, but these errors were encountered: