Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Show working directory in status. | ab188603dda062de4b2ea76c5bc1d2d41d98b8c2 | Jan Allersma | 2018-12-25 10:36:35 |
Add shell fallthrough. | 02078135791fb3889152c11defaa2df21d0ae597 | Jan Allersma | 2018-12-22 19:47:36 |
Show dependencies when using `delete` command. | cfa9779714d5e6d46ab5b4eeb84a915a15f23f54 | Jan Allersma | 2018-12-20 15:46:05 |
Resolve dep-tree by building project recursively. | f53e38d790ec67d99ec8204af97273a53b73a9dc | Jan Allersma | 2018-12-19 14:54:07 |
Improve `dep-tree` command. | 90bfa0340b7b874d65c08dc05c3d711abda1c469 | Jan Allersma | 2018-12-17 20:10:14 |
Implement experimental `dep-tree` command. | 45d9dfdbfc99c59174e7c587621276b78ab7a4e9 | Jan Allersma | 2018-12-14 16:11:53 |
Implement `add` command. | bbb2544bd06f29866465d651c32ca4d6e017f5e9 | Jan Allersma | 2018-12-11 15:43:10 |
Implement `exe` command. | 1eaa36242201cf7ade5f23a14340e630c267db07 | Jan Allersma | 2018-12-11 13:23:32 |
Implement `run` and `build` commands. | 14e9e25b6a06f587c1a50829e72c829ae59a87c2 | Jan Allersma | 2018-12-10 20:57:08 |
Implement non-recursive dependency check. | 5ffd40604755d1c2dde9353c74f06a006deea33c | Jan Allersma | 2018-12-07 20:50:42 |
Restructure project. | c2d98caf7897e87284fb2891e1d4b92d14cf37e1 | Jan Allersma | 2018-12-06 16:20:46 |
Initial commit. | 4c152d55edc20ac55fd749a2b32b204134a664e3 | Jan Allersma | 2018-12-05 17:03:08 |
File | Lines added | Lines deleted |
---|---|---|
src/shell.rs | 5 | 1 |
File src/shell.rs changed (mode: 100644) (index 6b690a1..a01d141) | |||
... | ... | pub fn shell() { | |
10 | 10 | let mut editor = rustyline::Editor::<()>::new(); | let mut editor = rustyline::Editor::<()>::new(); |
11 | 11 | ||
12 | 12 | loop { | loop { |
13 | let input = match editor.readline("ambassade> ") { | ||
13 | let status = dir.canonicalize().unwrap(); | ||
14 | let mut status = String::from(status.file_name().unwrap().to_str().unwrap()); | ||
15 | status.push_str("> "); | ||
16 | |||
17 | let input = match editor.readline(status.as_str()) { | ||
14 | 18 | Ok(line) => line, | Ok(line) => line, |
15 | 19 | Err(Error::Interrupted) => break, | Err(Error::Interrupted) => break, |
16 | 20 | Err(_) => continue | Err(_) => continue |