-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* testing workflows * updating change log * including all documentation Co-authored-by: @defstream <defstream@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
137 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## v0.1.2 - 2022-12-22 | ||
### Changed | ||
* Additional build workflow updates - adding clippy |
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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
<p align="center"> | ||
<img src="https://media2.giphy.com/media/p3R62d6L0WYw0/200w.gif"> | ||
</p> | ||
|
||
# kickable | ||
**kickables** is a package created to answer the age old question... "_Can I Kick It?_" | ||
_This package is for showcase purposes only._ | ||
|
||
**What is a kickable?** | ||
Currently only the word "it" is kickable. | ||
|
||
# Library | ||
|
||
### Install | ||
|
||
Download the binary from the releases page and place it in your path, or if you have cargo installed. | ||
```shell | ||
$ cargo install kickable@latest | ||
``````` | ||
|
||
### Usage | ||
|
||
```rust | ||
use kickable; | ||
fn main() { | ||
let kickable = kickable::validate("it"); | ||
println!("Can I kick it? {kickable}"); | ||
} | ||
``` | ||
|
||
# CLI | ||
|
||
### Install | ||
|
||
```bash | ||
$ cargo install "kickable@latest" | ||
``` | ||
|
||
### Usage | ||
|
||
```shell | ||
$ kickable "it" | ||
``` | ||
|
||
# Maintainers | ||
Hector Gray (Twitter: <a href="https://twitter.com/defstream">@defstream</a>) | ||
|
||
# Contribute | ||
Pull Requests welcome. Please make sure all tests pass 😀 | ||
|
||
# License | ||
MIT |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() { | ||
let kickable = kickable::kickable::validate("it"); | ||
println!("Can I kick it? {kickable}"); | ||
} |
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,18 @@ | ||
|
||
pub struct Args{ | ||
pub(crate) struct Args { | ||
pub item: String, | ||
} | ||
|
||
pub fn parse() -> Args { | ||
impl std::fmt::Display for Args { | ||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | ||
let args: Vec<String> = std::env::args().collect(); | ||
write!(f, "{:?}", args) | ||
} | ||
} | ||
|
||
pub(crate) fn parse() -> Args { | ||
let input = std::env::args().nth(1).expect("invalid input"); | ||
return Args{item: input}; | ||
} | ||
|
||
Args { | ||
item: input, | ||
} | ||
} |
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,7 +1,17 @@ | ||
|
||
pub fn validate(input :&str) -> bool { | ||
/// Returns true if the input supplied is kickable. | ||
/// | ||
/// # Arguments | ||
/// | ||
/// * `input` - A string to validate for kick-ability. | ||
/// | ||
/// # Examples | ||
/// | ||
#[allow(rustdoc::bare_urls)] | ||
#[cfg_attr(not(feature = "derive"), doc = " ```ignore")] | ||
#[doc = include_str!("../examples/cargo-example.rs")] | ||
pub fn validate(input: &str) -> bool { | ||
if input.to_lowercase() == "it" { | ||
return true; | ||
} | ||
return false; | ||
} | ||
false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Licensed under the MIT license | ||
// (see LICENSE or <http://opensource.org/licenses/MIT>) All files in the project carrying such | ||
// notice may not be copied, modified, or distributed except according to those terms. | ||
|
||
//! > **kickable** is a package created to answer the age old question... "_Can I Kick It?_" | ||
//! | ||
//! Quick Links: | ||
//! - Can I Kick It [music video](https://www.youtube.com/watch?v=O3pyCGnZzYA) | ||
//! ## Example | ||
//! | ||
//! Run | ||
//! ```console | ||
//! $ cargo add kickable | ||
//! ``` | ||
//! Then use kickable in your code`: | ||
#![cfg_attr(not(feature = "derive"), doc = " ```ignore")] | ||
#![cfg_attr(feature = "derive", doc = " ```no_run")] | ||
#![doc = include_str!("../examples/cargo-example.rs")] | ||
pub mod kickable; |
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