sea-shell 0.0.12

A portable Bash-like shell written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::re_exports::*;

pub const VERSION_COMMAND: crate::Command = crate::Command {
  name: "version",
  description: "Display the version",
  args: &[],
  handler: |ctx, _args| {
    create_logger_from_logger!(ctx.logger, true);

    Box::pin(async move {
      log!(raw, crate::VERSION);

      (Some(ctx), 0)
    })
  },
};