1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream> #include "hash.hh" #include "shared.hh" void run(Strings args) { for (Strings::iterator it = args.begin(); it != args.end(); it++) cout << format("%1%\n") % (string) hashPath(*it); } string programId = "nix-hash";