5 #ifndef CVMFS_SWISSKNIFE_LSREPO_H_
6 #define CVMFS_SWISSKNIFE_LSREPO_H_
19 namespace swissknife {
25 virtual std::string
GetName()
const {
return "lsrepo"; }
27 return "CernVM File System Repository Traversal\n"
28 "This command lists the nested catalog tree that builds up a "
29 "cvmfs repository structure.";
36 template <
class ObjectFetcherT>
38 ObjectFetcherT *object_fetcher)
44 if (manual_root_hash.
IsNull())
46 return traversal.
Traverse(manual_root_hash);
60 #endif // CVMFS_SWISSKNIFE_LSREPO_H_
CallbackPtr RegisterListener(typename BoundClosure< CatalogTraversalData< ObjectFetcherT::CatalogTN >, DelegateT, ClosureDataT >::CallbackMethod method, DelegateT *delegate, ClosureDataT data)
std::vector< Parameter > ParameterList
virtual std::string GetName() const
bool Run(const shash::Any &manual_root_hash, ObjectFetcherT *object_fetcher)
ObjectFetcherT * object_fetcher
virtual ParameterList GetParams() const
int Main(const ArgumentList &args)
bool Traverse(const TraversalType type=Base::kBreadthFirst)
std::map< char, SharedPtr< std::string > > ArgumentList
void CatalogCallback(const CatalogTraversalData< catalog::Catalog > &data)
virtual std::string GetDescription() const