gosh_runner/
lib.rs

1// [[file:../runners.note::16bab924][16bab924]]
2use gosh_core::*;
3use gut::prelude::*;
4
5use std::path::{Path, PathBuf};
6
7/// Return current timestamp string
8fn timestamp_now() -> String {
9    use chrono::prelude::*;
10    let now: DateTime<Local> = Local::now();
11    format!("{}", now)
12}
13// 16bab924 ends here
14
15// [[file:../runners.note::9fd14bf8][9fd14bf8]]
16pub mod cli;
17pub mod interactive;
18pub mod job;
19pub mod process;
20pub mod stop;
21
22mod session;
23
24/// Some extension traits
25pub mod prelude {
26    pub use crate::process::SpawnSessionExt;
27}
28// 9fd14bf8 ends here
29
30// [[file:../runners.note::c6e9d2bf][c6e9d2bf]]
31#[cfg(feature = "adhoc")]
32/// Documentation for local development
33pub mod docs {
34    macro_rules! export_doc {
35        ($l:ident) => {
36            pub mod $l {
37                pub use crate::$l::*;
38            }
39        };
40    }
41
42    export_doc!(job);
43    export_doc!(process);
44    export_doc!(session);
45}
46// c6e9d2bf ends here