Starting the Clap CLI parser

This commit is contained in:
2025-05-24 13:52:32 -05:00
parent 2067964a80
commit 408b0108a5
4 changed files with 37 additions and 2 deletions

View File

@@ -1,4 +1,9 @@
use gt_tools::ReleaseInfo;
use gt_tools::{
ReleaseInfo,
cli::Args
};
use clap::Parser;
use reqwest::Error;
use reqwest::header::{
@@ -8,6 +13,10 @@ use reqwest::header::{
#[tokio::main]
async fn main() -> Result<(), Error> {
let args = Args::parse();
println!("{:?}", args);
let request_url = format!(
"http:/localhost:3000/api/v1/repos/{owner}/{repo}/releases",
owner = "robert",