sea_shell/commands/
version.rs

1use crate::re_exports::*;
2
3pub const VERSION_COMMAND: crate::Command = crate::Command {
4  name: "version",
5  description: "Display the version",
6  args: &[],
7  handler: |ctx, _args| {
8    create_logger_from_logger!(ctx.logger, true);
9
10    Box::pin(async move {
11      log!(raw, crate::VERSION);
12
13      (Some(ctx), 0)
14    })
15  },
16};