diff options
| author | Simon Johnsson <simon.johnsson@canonical.com> | 2025-09-26 18:18:42 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-09-26 16:18:42 +0000 |
| commit | 66962bee233b617e4a9ce436f9b26875511b35e6 (patch) | |
| tree | eb72d44c499404fd46c04119e7e5fb214f7833f2 /cmdline | |
| parent | 3c9399e643a07074d47c9bceca88e8d43ff55d36 (diff) | |
History Command and Parsing
Diffstat (limited to 'cmdline')
| -rw-r--r-- | cmdline/apt.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/cmdline/apt.cc b/cmdline/apt.cc index a876085ce..545b6d0b4 100644 --- a/cmdline/apt.cc +++ b/cmdline/apt.cc @@ -22,6 +22,7 @@ #include <apt-private/private-cmndline.h> #include <apt-private/private-depends.h> #include <apt-private/private-download.h> +#include <apt-private/private-history.h> #include <apt-private/private-install.h> #include <apt-private/private-list.h> #include <apt-private/private-main.h> @@ -83,7 +84,7 @@ static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/ {"remove", &DoInstall, _("remove packages")}, {"autoremove", &DoInstall, _("automatically remove all unused packages")}, {"auto-remove", &DoInstall, nullptr}, - {"autopurge",&DoInstall, nullptr}, + {"autopurge", &DoInstall, nullptr}, {"purge", &DoInstall, nullptr}, // system wide stuff @@ -91,6 +92,10 @@ static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/ {"upgrade", &DoUpgrade, _("upgrade the system by installing/upgrading packages")}, {"full-upgrade", &DoDistUpgrade, _("upgrade the system by removing/installing/upgrading packages")}, + // history stuff + {"history-list", &DoHistoryList, _("show list of history")}, + {"history-info", &DoHistoryInfo, _("show info on specific transactions")}, + // misc {"edit-sources", &EditSources, _("edit the source information file")}, {"modernize-sources", &ModernizeSources, _("modernize .list files to .sources files")}, @@ -101,11 +106,11 @@ static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/ // 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}, + {"showsrc", &ShowSrcPackage, nullptr}, + {"depends", &Depends, nullptr}, + {"rdepends", &RDepends, nullptr}, + {"policy", &Policy, nullptr}, + {"build-dep", &DoBuildDep, nullptr}, {"clean", &DoClean, nullptr}, {"distclean", &DoDistClean, nullptr}, {"dist-clean", &DoDistClean, nullptr}, @@ -116,8 +121,7 @@ static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/ {"changelog", &DoChangelog, nullptr}, {"info", &ShowPackage, nullptr}, - {nullptr, nullptr, nullptr} - }; + {nullptr, nullptr, nullptr}}; } /*}}}*/ int main(int argc, const char *argv[]) /*{{{*/ |
