Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions source/dub/commandline.d
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ CommandGroup[] getCommands()
new RemoveOverrideCommand,
new ListOverridesCommand,
new CleanCachesCommand,
new RegistryCommand
)
];
}
Expand Down Expand Up @@ -1402,6 +1403,32 @@ class CleanCachesCommand : Command {
}
}

/******************************************************************************/
/* Browse registry */
/******************************************************************************/

class RegistryCommand : Command {

this()
{
this.name = "registry";
this.argumentsPattern = "";
this.description = "Open DUB registry in browser";
this.helpText = [
"This command open the DUB registry in a browser for package discovery and management."
];
}

override void prepare(scope CommandArgs args) {}

override int execute(Dub dub, string[] free_args, string[] app_args)
{
import std.process : browse;
browse("http://code.dlang.org/");
return 0;
}
}

/******************************************************************************/
/* DUSTMITE */
/******************************************************************************/
Expand Down