1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/// Configuration files, from the crate `kawauso-config`
///
/// An application that wants this capability on its own, without the rest of
/// the framework, depends on `kawauso-config` and reaches the same types.
///
/// # Examples
///
/// ```
/// use std::collections::BTreeMap;
///
/// use kawauso::config::Loader;
///
/// let configuration: BTreeMap<String, u16> = Loader::contents("port = 8080").load()?;
///
/// assert_eq!(configuration["port"], 8080);
/// # Ok::<(), kawauso::config::error::LoadConfigurationError>(())
/// ```
// kawauso[impl facade.module]
// kawauso[impl facade.identity]
pub use kawauso_config as config;
/// External programs that an application runs, from the crate
/// `kawauso-process`
///
/// An application that wants this capability on its own, without the rest of
/// the framework, depends on `kawauso-process` and reaches the same types.
///
/// # Examples
///
/// ```
/// use kawauso::process::Invocation;
///
/// let invocation = Invocation::new("git").arg("status").arg("--short");
///
/// assert_eq!(invocation.to_string(), "git status --short");
/// ```
// kawauso[impl facade.module]
// kawauso[impl facade.identity]
pub use kawauso_process as process;
/// The project that an application runs in, from the crate
/// `kawauso-project`
///
/// An application that wants this capability on its own, without the rest of
/// the framework, depends on `kawauso-project` and reaches the same types.
///
/// # Examples
///
/// ```
/// use kawauso::project::Search;
///
/// let search = Search::working_directory().marker(".git");
///
/// assert_eq!(search.markers().len(), 1);
/// ```
// kawauso[impl facade.module]
// kawauso[impl facade.identity]
pub use kawauso_project as project;