January 2019
Intermediate to advanced
520 pages
14h 32m
English
AWS is divided by regions, where each has its own endpoint to connect to services. Our tool will support two arguments to set a region and endpoint:
.arg( Arg::with_name("region") .long("region") .value_name("REGION") .help("Sets a region") .takes_value(true), ).arg( Arg::with_name("endpoint") .long("endpoint-url") .value_name("URL") .help("Sets an endpoint url") .takes_value(true), )
We add both to App instance. The tool will support two commands to add a new item and to print all items. The first subcommand is add and it expects three arguments: USER_ID, LONGITUDE, and LATITUDE:
.subcommand(SubCommand::with_name(CMD_ADD).about("add geo record to the table") .arg(Arg::with_name("USER_ID") .help("Sets the id ...Read now
Unlock full access