Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Integrate 'ambassade-debug' crate. Revise `backend::config::check()` function. | 4778a3c217f2a7a7fe67110123df392e205797cd | Jan Allersma | 2019-02-01 14:26:25 |
Update help message. | 3f55a9f0df7f8a1c0832191202888d79bf0735a3 | kapstok | 2019-01-28 10:31:10 |
Add download link in README.md. | 62b88a73992edac88f9fc3dfb42661abcd78ae27 | Jan Allersma | 2019-01-27 18:53:44 |
Update README.md | 10b989f84b331a6cba39040cc5c35952e135adc9 | Jan Allersma | 2019-01-26 19:06:49 |
Add example for demonstration. | 19c532f4bb40e5485159b3e13ed78514cf85b5ee | Jan Allersma | 2019-01-20 15:20:51 |
Fix module concurrency. | f39efe6c3981d1097e6ee8ced0f3d7a8c913a256 | Jan Allersma | 2019-01-20 14:46:26 |
Revise git(ignore) integration. | 192f93a160ead0165ca15c21f5cc046d89b7ba5d | Jan Allersma | 2019-01-19 16:39:10 |
Run modules concurrently. | 0100f680f4054ffe4948278a5dae93b4fcb0d333 | Jan Allersma | 2019-01-19 16:24:27 |
Fix `dep_config::scan`. | ed8759345a07e93b30bd802b1e6ecb8d5eeb3b85 | Jan Allersma | 2019-01-18 14:53:50 |
Fix fetching with single-file-modules. | d1a2173433bf45648da9a85cda04d7ace9148439 | Jan Allersma | 2019-01-15 16:24:27 |
Add feature: initialize hidden dependencies. | fc99666c48da1653b3097a0251d8219bc49886cb | Jan Allersma | 2019-01-12 15:52:45 |
Revise `hide` command. | 482bad08f949eaedbd61e2cb7c53870271d47997 | Jan Allersma | 2019-01-11 15:45:26 |
Rename project to 'Ambassade'. | 4f9c0e27ca25042a97acebc9f3282e4f941706fe | Jan Allersma | 2019-01-10 15:01:39 |
Git integration. | 0ebc5b3769e50c3463bdc39af0160c7db0d3f00b | Jan Allersma | 2019-01-03 17:34:18 |
Implement `hide` command. | ab693b8fd91c93dfd7ee7b82cbae75b2a6043b0f | Jan Allersma | 2018-12-29 15:13:25 |
Resolve missing/erroneous build/run commands. | e81d57882036a6475718b0653169c609d23b1c30 | Jan Allersma | 2018-12-25 13:06:00 |
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 |
File | Lines added | Lines deleted |
---|---|---|
.cargo/config | 3 | 0 |
Cargo.lock | 11 | 1 |
Cargo.toml | 2 | 1 |
src/backend/config.rs | 16 | 8 |
src/backend/internal/mod.rs | 1 | 0 |
src/backend/internal/postmortem.rs | 19 | 0 |
src/backend/system.rs | 7 | 0 |
src/main.rs | 2 | 0 |
File .cargo/config added (mode: 100644) (index 0000000..6569cdb) | |||
1 | [target.x86_64-pc-windows-gnu] | ||
2 | linker = "x86_64-w64-mingw32-gcc" | ||
3 | ar = "x86_64-w64-mingw32-gcc-ar" |
File Cargo.lock changed (mode: 100644) (index 0a862b0..876eb3d) | |||
1 | 1 | [[package]] | [[package]] |
2 | 2 | name = "ambassade" | name = "ambassade" |
3 | version = "1.0.0" | ||
3 | version = "1.0.1" | ||
4 | 4 | dependencies = [ | dependencies = [ |
5 | "ambassade-debug 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||
5 | 6 | "git2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", | "git2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", |
6 | 7 | "rustyline 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | "rustyline 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", |
7 | 8 | "serde_json 1.0.36 (registry+https://github.com/rust-lang/crates.io-index)", | "serde_json 1.0.36 (registry+https://github.com/rust-lang/crates.io-index)", |
8 | 9 | ] | ] |
9 | 10 | ||
11 | [[package]] | ||
12 | name = "ambassade-debug" | ||
13 | version = "0.2.0" | ||
14 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
15 | dependencies = [ | ||
16 | "git2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||
17 | ] | ||
18 | |||
10 | 19 | [[package]] | [[package]] |
11 | 20 | name = "argon2rs" | name = "argon2rs" |
12 | 21 | version = "0.2.5" | version = "0.2.5" |
... | ... | version = "0.4.0" | |
472 | 481 | source = "registry+https://github.com/rust-lang/crates.io-index" | source = "registry+https://github.com/rust-lang/crates.io-index" |
473 | 482 | ||
474 | 483 | [metadata] | [metadata] |
484 | "checksum ambassade-debug 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1e4b97e2b45a21933ae06aa7475c012b5048cce72c7ec95e2166b54037e737a0" | ||
475 | 485 | "checksum argon2rs 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3f67b0b6a86dae6e67ff4ca2b6201396074996379fba2b92ff649126f37cb392" | "checksum argon2rs 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3f67b0b6a86dae6e67ff4ca2b6201396074996379fba2b92ff649126f37cb392" |
476 | 486 | "checksum arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "92c7fb76bc8826a8b33b4ee5bb07a247a81e76764ab4d55e8f73e3a4d8808c71" | "checksum arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "92c7fb76bc8826a8b33b4ee5bb07a247a81e76764ab4d55e8f73e3a4d8808c71" |
477 | 487 | "checksum autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a6d640bee2da49f60a4068a7fae53acde8982514ab7bae8b8cea9e88cbcfd799" | "checksum autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a6d640bee2da49f60a4068a7fae53acde8982514ab7bae8b8cea9e88cbcfd799" |
File Cargo.toml changed (mode: 100644) (index 53ed450..1d5ddb5) | |||
1 | 1 | [package] | [package] |
2 | 2 | name = "ambassade" | name = "ambassade" |
3 | version = "1.0.0" | ||
3 | version = "1.0.1" | ||
4 | 4 | authors = ["Jan Allersma <jan@allersma.be>"] | authors = ["Jan Allersma <jan@allersma.be>"] |
5 | 5 | ||
6 | 6 | [dependencies] | [dependencies] |
7 | 7 | serde_json = "1.0" | serde_json = "1.0" |
8 | 8 | rustyline = "2.1.0" | rustyline = "2.1.0" |
9 | 9 | git2 = "0.8" | git2 = "0.8" |
10 | ambassade-debug = "^0" |
File src/backend/config.rs changed (mode: 100644) (index d301561..7a70737) | |||
... | ... | pub fn update(path: &PathBuf, value: serde_json::Value) -> Result<(), String> { | |
55 | 55 | fn read(path: &PathBuf) -> Result<String, Error> { | fn read(path: &PathBuf) -> Result<String, Error> { |
56 | 56 | let mut config = String::new(); | let mut config = String::new(); |
57 | 57 | ||
58 | check(&path); | ||
58 | check(path); | ||
59 | 59 | ||
60 | 60 | match File::open(path.to_str().unwrap()) { | match File::open(path.to_str().unwrap()) { |
61 | 61 | Ok(mut file) => { | Ok(mut file) => { |
... | ... | fn check(config: &PathBuf) { | |
91 | 91 | let mut input = String::new(); | let mut input = String::new(); |
92 | 92 | ||
93 | 93 | println!("'{}' not found. ", config.to_str().unwrap()); | println!("'{}' not found. ", config.to_str().unwrap()); |
94 | println!("Initialize module with new config file [y/N]?"); | ||
95 | 94 | ||
96 | match io::stdin().read_line(&mut input) { | ||
97 | Ok(_) if input.as_str() == "y\n" => match init(config) { | ||
98 | Ok(_) => {}, | ||
99 | Err(e) => println!("Module initialization failed. Details: {}", e) | ||
100 | }, | ||
101 | Ok(_) | Err(_) => {} | ||
95 | if config.is_dir() { | ||
96 | println!("Create specific config file for module (using ambassade hide)? [y/N]?"); | ||
97 | |||
98 | match io::stdin().read_line(&mut input) { | ||
99 | Ok(_) if input.as_str() == "y\n" => { | ||
100 | let dep_name = String::from(config.file_name().unwrap().to_str().unwrap()); | ||
101 | match super::dep_config::init(dep_name) { | ||
102 | Ok(_) => {}, | ||
103 | Err(e) => println!("Module initialization failed. Details: {}", e) | ||
104 | } | ||
105 | }, | ||
106 | Ok(_) | Err(_) => {} | ||
107 | } | ||
108 | } else { | ||
109 | panic!("Path does not exist!"); | ||
102 | 110 | } | } |
103 | 111 | } | } |
104 | 112 | } | } |
File src/backend/internal/mod.rs changed (mode: 100644) (index 1eada8d..c4b3e02) | |||
1 | 1 | pub mod paralellism; | pub mod paralellism; |
2 | pub mod postmortem; |
File src/backend/internal/postmortem.rs added (mode: 100644) (index 0000000..5ccf636) | |||
1 | extern crate ambassade_debug as dbg; | ||
2 | |||
3 | pub struct DefaultSubmitMethod {} | ||
4 | |||
5 | impl dbg::debug::SubmitMethod for DefaultSubmitMethod { | ||
6 | fn submit(&self, _info: &dbg::debug::DebugInfo) -> bool { | ||
7 | true | ||
8 | } | ||
9 | |||
10 | fn submission_succeeded(&self, info: &dbg::debug::DebugInfo) { | ||
11 | println!(""); | ||
12 | println!("Please submit the information below to the repository or to a mirror:"); | ||
13 | println!("https://pagure.io/Ambassade/new_issue"); | ||
14 | println!("https://github.com/kapstok/Ambassade/issues/new"); | ||
15 | println!(""); | ||
16 | println!(""); | ||
17 | println!("{}", info); | ||
18 | } | ||
19 | } |
File src/backend/system.rs changed (mode: 100644) (index 5d2efd3..f55277c) | |||
1 | extern crate ambassade_debug as dbg; | ||
2 | |||
1 | 3 | pub enum OS { | pub enum OS { |
2 | 4 | All, | All, |
3 | 5 | Linux, | Linux, |
... | ... | impl OS { | |
21 | 23 | OS::Windows | OS::Windows |
22 | 24 | } | } |
23 | 25 | } | } |
26 | |||
27 | |||
28 | pub fn watch() { | ||
29 | dbg::watch(super::internal::postmortem::DefaultSubmitMethod{}); | ||
30 | } |
File src/main.rs changed (mode: 100644) (index 038c3be..edd26f6) | |||
... | ... | mod shell; | |
6 | 6 | mod parser; | mod parser; |
7 | 7 | ||
8 | 8 | fn main() { | fn main() { |
9 | backend::system::watch(); | ||
10 | |||
9 | 11 | match backend::filesystem::get_current_project_root() { | match backend::filesystem::get_current_project_root() { |
10 | 12 | Some(_) => println!("You are in a project."), | Some(_) => println!("You are in a project."), |
11 | 13 | None => println!("You are not in a project.") | None => println!("You are not in a project.") |