Skip to content

Commit

Permalink
Include libunftp version in help message
Browse files Browse the repository at this point in the history
  • Loading branch information
Joost authored and hannesdejager committed Aug 13, 2023
1 parent 2fceaa7 commit e472c24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/controlchan/commands/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ where
{
#[tracing_attributes::instrument]
async fn handle(&self, _args: CommandContext<Storage, User>) -> Result<Reply, ControlChanError> {
let text = vec!["Help:", "Powered by libunftp", "View the docs at: https://unftp.rs/"];
let text = vec![
"Help:",
format!("Powered by libunftp: {}", env!("CARGO_PKG_VERSION")),
"View the docs at: https://unftp.rs/"];
Ok(Reply::new_multiline(ReplyCode::HelpMessage, text))
}
}

0 comments on commit e472c24

Please sign in to comment.