12 #include <sys/types.h>
39 string manifest_path = *args.find(
'm')->second;
40 string repo_url = *args.find(
'u')->second;
41 string spooler_definition = *args.find(
'r')->second;
42 string temp_dir = *args.find(
't')->second;
44 string certificate =
"";
45 if (args.find(
'c') != args.end()) certificate = *args.find(
'c')->second;
47 if (args.find(
'k') != args.end()) priv_key = *args.find(
'k')->second;
48 string repo_name =
"";
49 if (args.find(
'n') != args.end()) repo_name = *args.find(
'n')->second;
51 if (args.find(
's') != args.end()) pwd = *args.find(
's')->second;
53 if (args.find(
'M') != args.end()) meta_info = *args.find(
'M')->second;
55 if (args.find(
'@') != args.end()) proxy = *args.find(
'@')->second;
56 const bool garbage_collectable = (args.count(
'g') > 0);
57 const bool bootstrap_shortcuts = (args.count(
'A') > 0);
58 const bool return_early = (args.count(
'e') > 0);
60 string reflog_chksum_path;
62 if (args.find(
'R') != args.end()) {
63 reflog_chksum_path = *args.find(
'R')->second;
67 return signing_tool.
Run(manifest_path, repo_url, spooler_definition, temp_dir,
68 certificate, priv_key, repo_name, pwd, meta_info,
69 reflog_chksum_path, proxy, garbage_collectable,
70 bootstrap_shortcuts, return_early);
SharedPtr< string > temp_dir
HttpObjectFetcher ObjectFetcher
int Main(const ArgumentList &args)
std::map< char, SharedPtr< std::string > > ArgumentList
std::string meta_info() const