diff --git a/changelog/remove-dub-list-installed.dd b/changelog/remove-dub-list-installed.dd new file mode 100644 index 0000000..83a1639 --- /dev/null +++ b/changelog/remove-dub-list-installed.dd @@ -0,0 +1,3 @@ +Remove `dub list-installed` command + +`dub list-installed` command was deprecated and renamed to `list` at $(LINK2 https://github.com/dlang/dub/pull/150, in 2013). diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 8039645..c22c00d 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -67,7 +67,6 @@ new RemoveLocalCommand, new ListCommand, new SearchCommand, - new ListInstalledCommand, new AddOverrideCommand, new RemoveOverrideCommand, new ListOverridesCommand, @@ -1584,16 +1583,6 @@ } } -class ListInstalledCommand : ListCommand { - this() { this.name = "list-installed"; hidden = true; } - override void prepare(scope CommandArgs args) { super.prepare(args); } - override int execute(Dub dub, string[] free_args, string[] app_args) - { - warnRenamed("list-installed", "list"); - return super.execute(dub, free_args, app_args); - } -} - class SearchCommand : Command { this() {