summaryrefslogtreecommitdiff
path: root/cmdline/apt.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-10-26 19:30:44 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-04 18:04:04 +0100
commit9055d5e68bd09f31df00e45bd14cb599ba3735e5 (patch)
tree0cab141c3e7fdf5de5e9940dd394b9dbf0503c62 /cmdline/apt.cc
parent41d39345bdc31cb9b8be057cd678aa2890830437 (diff)
hidden support more apt-get/apt-cache commands in apt
apt is supposed to be a user-friendly interface, so while these commands are usually poweruser material and therefore do not need to be shown in general introduction manpages/help messages its of no use to not allow users to use them. This includes clean, autoclean, build-dep, source, download, changelog, depends, rdepends and showsrc – it doesn't include more non-interactive commands like dump or xvcg as those are usually used by scripts if at all. Closes: 778234, 780700, 781237
Diffstat (limited to 'cmdline/apt.cc')
-rw-r--r--cmdline/apt.cc19
1 files changed, 18 insertions, 1 deletions
diff --git a/cmdline/apt.cc b/cmdline/apt.cc
index 3eae22199..368822d2d 100644
--- a/cmdline/apt.cc
+++ b/cmdline/apt.cc
@@ -29,6 +29,9 @@
#include <apt-private/private-show.h>
#include <apt-private/private-main.h>
#include <apt-private/private-sources.h>
+#include <apt-private/private-source.h>
+#include <apt-private/private-depends.h>
+#include <apt-private/private-download.h>
#include <unistd.h>
#include <iostream>
@@ -67,11 +70,25 @@ std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/
{"update", &DoUpdate, _("update list of available packages")},
{"upgrade", &DoUpgrade, _("upgrade the system by installing/upgrading packages")},
{"full-upgrade", &DoDistUpgrade, _("upgrade the system by removing/installing/upgrading packages")},
- {"dist-upgrade", &DoDistUpgrade, nullptr}, // for compat with muscle memory
// misc
{"edit-sources", &EditSources, _("edit the source information file")},
{"moo", &DoMoo, nullptr},
+
+ // for compat with muscle memory
+ {"dist-upgrade", &DoDistUpgrade, nullptr},
+ {"showsrc",&ShowSrcPackage, nullptr},
+ {"depends",&Depends, nullptr},
+ {"rdepends",&RDepends, nullptr},
+ {"policy",&Policy, nullptr},
+ {"build-dep", &DoBuildDep,nullptr},
+ {"clean", &DoClean, nullptr},
+ {"autoclean", &DoAutoClean, nullptr},
+ {"auto-clean", &DoAutoClean, nullptr},
+ {"source", &DoSource, nullptr},
+ {"download", &DoDownload, nullptr},
+ {"changelog", &DoChangelog, nullptr},
+
{nullptr, nullptr, nullptr}
};
}