aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/command_factory.cc
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2012-10-14 13:57:02 -0700
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-10-14 22:04:54 +0100
commit934e4074907c23af458153235e15d90016681d94 (patch)
treec07e21b807f11809c0913cda27d68e013ab17238 /src/clients/cave/command_factory.cc
parent636f8879403986797f3a72155f4af38d4ce49fce (diff)
downloadpaludis-934e4074907c23af458153235e15d90016681d94.tar.gz
paludis-934e4074907c23af458153235e15d90016681d94.tar.xz
cave: add print-unmanaged-files
This adds a new command to cave: print-unmanaged-files. This command is similar in spirit to the print-unamanged-files demo ruby script. The default invocation will scan the system root and recursively list all files. You may however limit it to a subset of the filesystem by specifying the --root parameter. More than one root may be specified simultaneously. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
Diffstat (limited to 'src/clients/cave/command_factory.cc')
-rw-r--r--src/clients/cave/command_factory.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clients/cave/command_factory.cc b/src/clients/cave/command_factory.cc
index b373b1a2d..01fb41410 100644
--- a/src/clients/cave/command_factory.cc
+++ b/src/clients/cave/command_factory.cc
@@ -80,6 +80,7 @@
#include "cmd_print_sets.hh"
#include "cmd_print_spec.hh"
#include "cmd_print_sync_protocols.hh"
+#include "cmd_print_unmanaged_files.hh"
#include "cmd_print_unused_distfiles.hh"
#include "cmd_purge.hh"
#include "cmd_report.hh"
@@ -203,6 +204,7 @@ CommandFactory::CommandFactory() :
_imp->handlers.insert(std::make_pair("print-sets", std::bind(&make_command<PrintSetsCommand>)));
_imp->handlers.insert(std::make_pair("print-spec", std::bind(&make_command<PrintSpecCommand>)));
_imp->handlers.insert(std::make_pair("print-sync-protocols", std::bind(&make_command<PrintSyncProtocolsCommand>)));
+ _imp->handlers.insert(std::make_pair("print-unmanaged-files", std::bind(&make_command<PrintUnmanagedFilesCommand>)));
_imp->handlers.insert(std::make_pair("print-unused-distfiles", std::bind(&make_command<PrintUnusedDistfilesCommand>)));
_imp->handlers.insert(std::make_pair("report", std::bind(&make_command<ReportCommand>)));
_imp->handlers.insert(std::make_pair("resolve", std::bind(&make_command<ResolveCommand>)));