diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0cfdfe7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] +env: + CARGO_TERM_COLOR: always +jobs: + build-ubuntu: + name: Build on Ubuntu + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Build examples + run: cargo build --verbose --examples + - name: Run tests + run: cargo test --verbose + build-windows: + name: Build on Windows + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Build examples + run: cargo build --verbose --examples + - name: Run tests + run: cargo test --verbose diff --git a/README.md b/README.md index 1118fa1..cedb262 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ use clientele::*; #### [`StandardOptions`] -``` +```text Options: --color Set the color output mode [default: auto] [possible values: auto, always, never] -d, --debug Enable debugging output diff --git a/lib/clientele/src/args.rs b/lib/clientele/src/args.rs index 1228c79..aab5c70 100644 --- a/lib/clientele/src/args.rs +++ b/lib/clientele/src/args.rs @@ -2,13 +2,13 @@ extern crate std; -use std::{env::ArgsOs, ffi::OsString, vec::Vec}; +use std::{ffi::OsString, vec::Vec}; pub fn args_os() -> Result, std::io::Error> { #[cfg(not(feature = "wild"))] - let args: ArgsOs = std::env::args_os(); + let args = std::env::args_os(); #[cfg(feature = "wild")] - let args: ArgsOs = wild::args_os(); + let args = wild::args_os(); #[cfg(not(feature = "argfile"))] return Ok(args.collect());