-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
933 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Project Dependencies | ||
Package: argyle | ||
Version: 0.8.1 | ||
Generated: 2024-09-05 18:45:10 UTC | ||
Version: 0.9.0 | ||
Generated: 2024-10-14 21:16:53 UTC | ||
|
||
This package has no dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[package] | ||
name = "argyle" | ||
version = "0.8.1" | ||
version = "0.9.0" | ||
authors = ["Blobfolio, LLC. <[email protected]>"] | ||
edition = "2021" | ||
rust-version = "1.70" | ||
rust-version = "1.81" | ||
description = "A lightweight, agnostic CLI argument parser." | ||
license = "WTFPL" | ||
repository = "https://github.com/Blobfolio/argyle" | ||
|
@@ -31,24 +31,8 @@ bash-dir = "./" | |
man-dir = "./" | ||
credits-dir = "./" | ||
|
||
[dev-dependencies] | ||
brunch = "0.5.*" | ||
|
||
[[bench]] | ||
name = "fm_keykind" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "fm_argue" | ||
harness = false | ||
|
||
[features] | ||
default = [] | ||
|
||
# Enables ArgyleError::WantsDynamicHelp variant. | ||
dynamic-help = [] | ||
|
||
[profile.bench] | ||
lto = false | ||
codegen-units = 1 | ||
opt-level = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,12 @@ | ||
/*! | ||
# Argyle: Argue | ||
# Argyle: Streaming Argue | ||
This example parses any arbitrary arguments fed to it and displays the results. | ||
*/ | ||
|
||
use std::ffi::OsStr; | ||
use std::mem::size_of; | ||
use std::os::unix::ffi::OsStrExt; | ||
|
||
|
||
|
||
fn main() { | ||
println!("Struct size: {}", size_of::<argyle::Argue>()); | ||
println!(); | ||
|
||
let args = argyle::Argue::new(argyle::FLAG_REQUIRED); | ||
match args { | ||
Ok(a) => { | ||
println!("\x1b[2mRAW:\x1b[0m"); | ||
println!("{:?}", a); | ||
|
||
println!(); | ||
println!("\x1b[2mPRETTY:\x1b[0m"); | ||
|
||
a.take().iter().for_each(|b| { | ||
println!("{}", OsStr::from_bytes(b).to_str().unwrap_or("[Invalid UTF-8]")); | ||
}); | ||
|
||
println!(); | ||
}, | ||
Err(e) => { | ||
println!("Error: {}", e); | ||
}, | ||
for arg in argyle::stream::args() { | ||
println!("\x1b[2m-----\x1b[0m\n{arg:?}"); | ||
} | ||
println!("\x1b[2m-----\x1b[0m"); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.