src/commands/version.rs
raw| 1 | //! Detailed version and output version information. |
| 2 | |
| 3 | use crate::{ |
| 4 | Sq, |
| 5 | Result, |
| 6 | cli::version, |
| 7 | }; |
| 8 | |
| 9 | pub fn dispatch(_sq: Sq, _c: version::Command) |
| 10 | -> Result<()> |
| 11 | { |
| 12 | weprintln!("sq {}", env!("CARGO_PKG_VERSION")); |
| 13 | weprintln!("using sequoia-openpgp {}", sequoia_openpgp::VERSION); |
| 14 | weprintln!("with cryptographic backend {}", |
| 15 | sequoia_openpgp::crypto::backend()); |
| 16 | |
| 17 | Ok(()) |
| 18 | } |