List of commits:
Subject Hash Author Date (UTC)
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
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
Commit 192f93a160ead0165ca15c21f5cc046d89b7ba5d - Revise git(ignore) integration.
Author: Jan Allersma
Author date (UTC): 2019-01-19 16:39
Committer name: Jan Allersma
Committer date (UTC): 2019-01-19 16:39
Parent(s): 0100f680f4054ffe4948278a5dae93b4fcb0d333
Signing key:
Tree: 1d9beec49d37fd6564d6312922ef93578faa4677
File Lines added Lines deleted
README.md 0 2
src/backend/git/ignore.rs 30 1
src/backend/project.rs 6 6
File README.md changed (mode: 100644) (index d8d7c61..da55583)
4 4
5 5 `backend::fetch::update_module()` kan wellicht met `backend::add::update_module()` samengevoegd worden. `backend::fetch::update_module()` kan wellicht met `backend::add::update_module()` samengevoegd worden.
6 6
7 Missing feature in `backend::git::ignore` (see [related file](src/backend/git/ignore.rs)).
8
9 7 Een threadpool om iedere dep apart mee te runnen. Een threadpool om iedere dep apart mee te runnen.
File src/backend/git/ignore.rs changed (mode: 100644) (index 698ac0e..a1325a6)
... ... use std::io::{ErrorKind, Write};
2 2 use std::path::PathBuf; use std::path::PathBuf;
3 3 use std::fs::OpenOptions; use std::fs::OpenOptions;
4 4
5 #[allow(dead_code)]
5 6 pub fn add(path: &mut PathBuf, item: &mut String) -> Result<(), String> { pub fn add(path: &mut PathBuf, item: &mut String) -> Result<(), String> {
6 7 path.push(".gitignore"); path.push(".gitignore");
7 8 item.push('\n'); item.push('\n');
8 9
9 10 let file_options = OpenOptions::new() let file_options = OpenOptions::new()
10 11 .append(true) .append(true)
12 .create(true)
11 13 .open(&path); .open(&path);
12 14
13 15 match file_options { match file_options {
 
... ... pub fn add(path: &mut PathBuf, item: &mut String) -> Result<(), String> {
31 33 } }
32 34 } }
33 35
34 // pub fn init(); // Moet evt .gitignore aanmaken en de dep folder in de .gitignore plaatsen.
36 pub fn init(path: &mut PathBuf) -> Result<(), String> {
37 path.push(".gitignore");
38
39 let file_options = OpenOptions::new()
40 .append(true)
41 .create(true)
42 .open(&path);
43
44 match file_options {
45 Ok(mut file) => {
46 match file.write(b"dep\n") {
47 Ok(_) => Ok(()),
48 Err(e) => Err(e.to_string())
49 }
50 },
51 Err(e) => {
52 match e.kind() {
53 ErrorKind::NotFound => {
54 let mut error = String::from(path.to_str().unwrap());
55 error.push_str(" not found");
56 Err(error)
57 },
58 ErrorKind::PermissionDenied => Err(String::from("gitignore file unreadable: permission denied.")),
59 _ => Err(e.to_string())
60 }
61 }
62 }
63 }
File src/backend/project.rs changed (mode: 100644) (index 26a9440..ae6853d)
... ... pub fn init<I>(args: &mut I) where I: Iterator<Item=String> {
10 10 directory.push(&projectname); directory.push(&projectname);
11 11 } }
12 12
13 match super::git::ignore::init(&mut directory.clone()) {
14 Ok(_) => {},
15 Err(e) => println!("Add 'dep' folder to .gitignore failed: {}. Continuing with project initialization..", e)
16 }
17
13 18 match super::config::create(directory) { match super::config::create(directory) {
14 19 Ok(_) => println!("Initialized project!"), Ok(_) => println!("Initialized project!"),
15 20 Err(e) => println!("Initializing project failed: {}", e) Err(e) => println!("Initializing project failed: {}", e)
 
... ... pub fn delete<I>(path: &mut I) -> Result<String, String> where I: Iterator<Item=
106 111 } }
107 112
108 113 pub fn add(args: &Vec<String>) -> Result<String, String> { pub fn add(args: &Vec<String>) -> Result<String, String> {
109 let mut dep: String = match args.get(0) {
114 let _dep: String = match args.get(0) {
110 115 Some(arg) => arg.clone(), Some(arg) => arg.clone(),
111 116 None => return Err(String::from("Missing dependency name as argument.")) None => return Err(String::from("Missing dependency name as argument."))
112 117 }; };
113 118
114 119 match super::filesystem::get_current_module_root() { match super::filesystem::get_current_module_root() {
115 120 Some(dir) => { Some(dir) => {
116 match super::git::ignore::add(&mut dir.clone(), &mut dep) {
117 Ok(_) => {},
118 Err(e) => return Err(e)
119 }
120
121 121 match super::add::add(args) { match super::add::add(args) {
122 122 Ok(msg) => println!("{}", msg), Ok(msg) => println!("{}", msg),
123 123 Err(e) => return Err(e) Err(e) => return Err(e)
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