7 #include <xpload/xpload.h>
15 string get_value(
const string &option)
const;
21 int main(
int argc,
char **argv)
27 string domain = arg_parser.
get_value(
"-d");
28 uint64_t timestamp = std::stoul(arg_parser.
get_value(
"-s"));
30 xpload::Configurator
config(cfg);
32 xpload::Result result = xpload::fetch(tag, domain, timestamp, config);
34 if (result.paths.empty())
36 cout <<
"No paths found\n";
40 cout <<
"Found paths:\n";
42 for (
const string& path : result.paths)
52 for (
int i=1; i < argc; ++i)
53 args.push_back(
string(argv[i]) );
58 auto itr = find(args.begin(), args.end(), option);
62 if (itr != args.end() && ++itr != args.end()) {
67 if (
value.empty() && option ==
"-c")
return "test";
68 if (
value.empty() && option ==
"-t")
return "example_tag_1";
69 if (
value.empty() && option ==
"-d")
return "CEMC";