Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(goodboye): changed about text to something more useful #27

Merged
merged 3 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/bin/goodboye.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

use clap::Parser;

#[derive(Parser)]
#[command(version, about, long_about = None)]
#[command(version, about = "A utility to a d d s p a c e s to your text.")]
struct Cli {
/// The space-separated words to modify.
///
Expand All @@ -24,6 +25,12 @@ fn main() {
mod tests {
use assert_cmd::Command;

#[test]
fn verify_cli() {
use clap::CommandFactory;
super::Cli::command().debug_assert();
}

#[test]
fn test_alternate_flag() {
Command::cargo_bin("goodboye")
Expand Down
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use clap::Parser;
#[derive(Parser)]
#[command(version, about, long_about = None)]
struct Cli {
/// The space-separated words to modify.
/// The space-separated words to modify, or "-" to read from stdin.
///
/// If no words were provided, the words may be given from stdin. Input from stdin can be
/// explicity requested by passing "-" as the first and only word.
Expand Down Expand Up @@ -99,6 +99,12 @@ mod tests {
sUnT iN cUlPa QuI oFfIcIa DeSeRuNt MoLlIt AnIm Id EsT lAbOrUm.
";

#[test]
fn verify_cli() {
use clap::CommandFactory;
super::Cli::command().debug_assert();
}

#[test]
fn test_alternate_flag() {
Command::cargo_bin("spongebob")
Expand Down