mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
chore: add source link
This commit is contained in:
parent
79a7141175
commit
69c2cd8cc9
1 changed files with 10 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ enum Action {
|
||||||
#[command(flatten, next_help_heading = "Query options")]
|
#[command(flatten, next_help_heading = "Query options")]
|
||||||
extra_options: Option<ExtraRequestSettings>,
|
extra_options: Option<ExtraRequestSettings>,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/// Check out the source code
|
||||||
|
Source,
|
||||||
/// Display the MIT License information
|
/// Display the MIT License information
|
||||||
License,
|
License,
|
||||||
}
|
}
|
||||||
|
|
@ -224,6 +227,13 @@ fn main() -> Result<()> {
|
||||||
let result = query_with_timeout_and_extra_settings(game, &ip, port, timeout_settings, extra_options)?;
|
let result = query_with_timeout_and_extra_settings(game, &ip, port, timeout_settings, extra_options)?;
|
||||||
output_result(output_mode, json, result.as_ref());
|
output_result(output_mode, json, result.as_ref());
|
||||||
}
|
}
|
||||||
|
Action::Source => {
|
||||||
|
println!("{}", GAMEDIG_HEADER);
|
||||||
|
|
||||||
|
// Print the source code location
|
||||||
|
println!("Source code: https://github.com/gamedig/rust-gamedig\n");
|
||||||
|
println!("Be sure to leave a star if you like the project :)\n");
|
||||||
|
}
|
||||||
Action::License => {
|
Action::License => {
|
||||||
// Bake the license into the binary
|
// Bake the license into the binary
|
||||||
// so we don't have to ship it separately
|
// so we don't have to ship it separately
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue