List of commits:
Subject Hash Author Date (UTC)
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
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
Commit d1a2173433bf45648da9a85cda04d7ace9148439 - Fix fetching with single-file-modules.
Author: Jan Allersma
Author date (UTC): 2019-01-15 16:24
Committer name: Jan Allersma
Committer date (UTC): 2019-01-15 16:24
Parent(s): fc99666c48da1653b3097a0251d8219bc49886cb
Signing key:
Tree: 860415e7d56d977a4dd4234351862d34357531dd
File Lines added Lines deleted
src/backend/fetch.rs 15 4
File src/backend/fetch.rs changed (mode: 100644) (index 6ee12ad..eb413a0)
... ... pub fn build(dep: PathBuf, mut command: String) -> Result<String, String> {
14 14 None => return Err(String::from("Fetching failed: no appropriate command set.")) None => return Err(String::from("Fetching failed: no appropriate command set."))
15 15 } }
16 16 } }
17 fetch(dep_name, &dep, command)
17 fetch(dep_name, dep, command)
18 18 } }
19 19
20 20 pub fn run(dep: PathBuf, mut command: String) -> Result<String, String> { pub fn run(dep: PathBuf, mut command: String) -> Result<String, String> {
 
... ... pub fn run(dep: PathBuf, mut command: String) -> Result<String, String> {
26 26 None => return Err(String::from("Fetching failed: no appropriate command set.")) None => return Err(String::from("Fetching failed: no appropriate command set."))
27 27 } }
28 28 } }
29 fetch(dep_name, &dep, command)
29 fetch(dep_name, dep, command)
30 30 } }
31 31
32 fn fetch(dep_name: String, path: &PathBuf, command: String) -> Result<String, String> {
32 fn fetch(dep_name: String, mut path: PathBuf, command: String) -> Result<String, String> {
33 33 let mut args: Vec<&str> = command.split(' ').collect(); let mut args: Vec<&str> = command.split(' ').collect();
34 34 let command = args.remove(0); let command = args.remove(0);
35
36 if !path.is_dir() {
37 println!("{} is not a directory. Running command from project root..", path.to_str().unwrap());
38 match super::filesystem::get_current_project_root() {
39 Some(dir) => path = dir,
40 None => return Err(String::from("No valid fetch directory found!"))
41 }
42 }
43
35 44 let out = Command::new(command) let out = Command::new(command)
36 .current_dir(path)
45 .current_dir(&path)
37 46 .args(args) .args(args)
38 47 .stdin(Stdio::inherit()) .stdin(Stdio::inherit())
39 48 .stdout(Stdio::inherit()) .stdout(Stdio::inherit())
 
... ... fn fetch(dep_name: String, path: &PathBuf, command: String) -> Result<String, St
54 63
55 64 let mut error = String::from("Fetching failed: command '"); let mut error = String::from("Fetching failed: command '");
56 65 error.push_str(command); error.push_str(command);
66 error.push_str("' in '");
67 error.push_str(path.to_str().unwrap());
57 68 error.push_str("' invalid. Details: "); error.push_str("' invalid. Details: ");
58 69 error.push_str(&e.to_string()); error.push_str(&e.to_string());
59 70 error.push_str("\n\nConsider changing the above command in the '"); error.push_str("\n\nConsider changing the above command in the '");
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/kapstok/NHL-Beheer

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/kapstok/NHL-Beheer

Clone this repository using git:
git clone git://git.rocketgit.com/user/kapstok/NHL-Beheer

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main