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 ECHO_COMMAND: crate::Command = crate::Command {
  name: "echo",
  args: &[],
  description: "Echo back the arguments",
  handler: |ctx, args| {
    create_logger_from_logger!(ctx.logger, true);

    Box::pin(async move {
      log!(raw, args.join(" "));

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