mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
chore: add source link
This commit is contained in:
parent
6aee5ebb76
commit
6cf6800bff
1 changed files with 10 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ enum Action {
|
|||
#[command(flatten, next_help_heading = "Query options")]
|
||||
extra_options: Option<ExtraRequestSettings>,
|
||||
},
|
||||
|
||||
/// Check out the source code
|
||||
Source,
|
||||
/// Display the MIT License information
|
||||
License,
|
||||
}
|
||||
|
|
@ -224,6 +227,13 @@ fn main() -> Result<()> {
|
|||
let result = query_with_timeout_and_extra_settings(game, &ip, port, timeout_settings, extra_options)?;
|
||||
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 => {
|
||||
// Bake the license into the binary
|
||||
// so we don't have to ship it separately
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue