Skip to content

Commit

Permalink
Merge pull request #231 from rust-rdf/clientele
Browse files Browse the repository at this point in the history
Enhance the CLI using Clientele.rs
  • Loading branch information
angelip2303 authored Jan 16, 2025
2 parents cf44d29 + adef656 commit 78b6653
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions rudof_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ anyhow = { workspace = true }
thiserror = { workspace = true }
void = "1"
clap = { workspace = true }
clientele = "0.2"
oxrdf = { workspace = true }
oxiri = "0.2.3-alpha.1"
regex = "^1.10"
Expand Down
9 changes: 8 additions & 1 deletion rudof_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ use tracing_subscriber::{filter::EnvFilter, fmt};

#[allow(unused_variables)]
fn main() -> Result<()> {
// Load environment variables from `.env`:
clientele::dotenv().ok();

let fmt_layer = fmt::layer()
.with_file(true)
.with_target(false)
Expand All @@ -80,7 +83,11 @@ fn main() -> Result<()> {

// tracing::info!("rudof is running...");

let cli = Cli::parse();
// Expand wildcards and @argfiles:
let args = clientele::args_os()?;

// Parse command-line options:
let cli = Cli::parse_from(args);

match &cli.command {
Some(Command::Service {
Expand Down

0 comments on commit 78b6653

Please sign in to comment.