List of commits:
Subject Hash Author Date (UTC)
yml support a0aca84f236cf2c0ac729030c3031999419530e2 Ubuntu 2020-03-30 19:20:30
prettier c0a36395356a8e6b165785b5e2dd5486fa22206d Ubuntu 2020-03-30 04:06:19
fix shit 4e786cec2b361164d67318fb9bc4d3e16b5e3156 Ubuntu 2020-03-30 02:55:58
color output 79515e592fad2cee9a985e0050969f6901451e93 Ubuntu 2020-03-30 02:42:46
output 6eec625ecbd51533330d2a1b618d28a433ae1ee4 Ubuntu 2020-03-30 02:37:25
works 1ee1f753c7dc99e4a91665d48ba7d60fd731b138 Ubuntu 2020-03-30 02:33:45
running test 08bdfaabe6111f35074dc1af59197fcc3af7ae3c Ubuntu 2020-03-30 02:23:19
building 249893d05180fa7cd770c22cef1714cc89c4318b Ubuntu 2020-03-30 02:17:05
cleanup 8750a7302fd91be1b984857bbdcd284470545ba2 Ubuntu 2020-03-30 01:16:21
project and common option 58a8a91e410978a52592952951bb6b24fe76964a Ubuntu 2020-03-30 01:12:45
use minimist 16d617198ccd8304ab324fc3989d60bb97177cca Ubuntu 2020-03-30 01:09:25
works with clang++ and g++ (on circuit) 8802dd772799132ab0c6502c1e079bc44365ad3e Ubuntu 2020-03-30 01:03:14
cleanup 45c9d366a75cbff5930fe51189140210835a6337 Ubuntu 2020-03-30 00:26:01
example works 8ed5b07157cd0b49b147939ba7a99f339a9c2d0f Ubuntu 2020-03-29 16:45:36
filtering out header files 22bafc763385d5b5759b924ac07f2474b4692e8b Ubuntu 2020-03-29 12:22:40
Revert "just include source" 3d420145117a1ea5404972165dca26ca0135f70e Ubuntu 2020-03-29 12:04:38
just include source 9d18479598ad88e5bae0d0a8e8bfe0009b47d5cf Ubuntu 2020-03-29 05:19:00
assert 6ba991dbb9b5606355f73c71fca85d80bd169bf9 Ubuntu 2020-03-29 04:59:45
cleanup f5cbde963e841bf63f51cc28ec389b6580345ed3 Ubuntu 2020-03-29 04:42:07
deepmerge aee7de1ccef07d1162231fad345a1dc1513452fb Ubuntu 2020-03-29 04:39:34
Commit a0aca84f236cf2c0ac729030c3031999419530e2 - yml support
Author: Ubuntu
Author date (UTC): 2020-03-30 19:20
Committer name: Ubuntu
Committer date (UTC): 2020-03-30 19:20
Parent(s): c0a36395356a8e6b165785b5e2dd5486fa22206d
Signing key:
Tree: f2591feaaedfcfbae64302cf4e3460422fa0516e
File Lines added Lines deleted
asserter/def.json 0 11
asserter/def.yml 8 0
index.js 11 2
package-lock.json 22 0
package.json 2 1
File asserter/def.json deleted (index efa50db..0000000)
1 {
2 "sources":
3 [
4 "src/archiver.cpp",
5 "src/archiver.h",
6 "src/asserter.cpp",
7 "src/asserter.h",
8 "src/asserter.hxx",
9 "src/test.h"
10 ]
11 }
File asserter/def.yml added (mode: 100644) (index 0000000..4900687)
1 ---
2 sources:
3 - src/archiver.cpp
4 - src/archiver.h
5 - src/asserter.cpp
6 - src/asserter.h
7 - src/asserter.hxx
8 - src/test.h
File index.js changed (mode: 100755) (index c80ecb3..448c402)
3 3 const fs = require("fs"), const fs = require("fs"),
4 4 path = require("path"), path = require("path"),
5 5 tmp = require("tmp"), tmp = require("tmp"),
6 YAML = require("yamljs"),
6 7 shell = require("shelljs"), shell = require("shelljs"),
7 8 cursor = require("ansi")(process.stdout), cursor = require("ansi")(process.stdout),
8 9 argv = require("minimist")(process.argv.slice(2)), argv = require("minimist")(process.argv.slice(2)),
 
... ... processDef(defPath);
24 25 function processDef(defPath) { function processDef(defPath) {
25 26 console.log("processing ", defPath); console.log("processing ", defPath);
26 27 readDef(defPath).then((obj) => { readDef(defPath).then((obj) => {
27 readDef(path.join(__dirname, "asserter/def.json")).then((obj2) => {
28 readDef(path.join(__dirname, "asserter/def.yml")).then((obj2) => {
28 29 let result = [obj, obj2].join(" "); let result = [obj, obj2].join(" ");
29 30 if (argv.common || argv.c) { if (argv.common || argv.c) {
30 31 result += " -pthread -DTARGET_TEST=1"; result += " -pthread -DTARGET_TEST=1";
 
... ... function processDef(defPath) {
64 65 }); });
65 66 } }
66 67
68 function getDef(def, defFile) {
69 const extname = path.extname(defFile);
70 if (extname.toUpperCase() === ".YML") {
71 return YAML.parse(def);
72 }
73 return JSON.parse(def);
74 }
75
67 76 function readDef(defFile) { function readDef(defFile) {
68 77 return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
69 78 const base = path.dirname(defFile); const base = path.dirname(defFile);
70 79 fs.readFile(defFile, "utf8", (err, def) => { fs.readFile(defFile, "utf8", (err, def) => {
71 80 if (err) throw err; if (err) throw err;
72 const { includes, sources, tests } = JSON.parse(def);
81 const { includes, sources, tests } = getDef(def, defFile);
73 82 let result = `-isystem ${base} `; let result = `-isystem ${base} `;
74 83 if (sources) { if (sources) {
75 84 result += sources result += sources
File package-lock.json changed (mode: 100644) (index 0037a3c..ccda211)
9 9 "resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz", "resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz",
10 10 "integrity": "sha1-DELU+xcWDVqa8eSEus4cZpIsGyE=" "integrity": "sha1-DELU+xcWDVqa8eSEus4cZpIsGyE="
11 11 }, },
12 "argparse": {
13 "version": "1.0.10",
14 "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
15 "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
16 "requires": {
17 "sprintf-js": "~1.0.2"
18 }
19 },
12 20 "balanced-match": { "balanced-match": {
13 21 "version": "1.0.0", "version": "1.0.0",
14 22 "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
 
135 143 "rechoir": "^0.6.2" "rechoir": "^0.6.2"
136 144 } }
137 145 }, },
146 "sprintf-js": {
147 "version": "1.0.3",
148 "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
149 "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
150 },
138 151 "tmp": { "tmp": {
139 152 "version": "0.1.0", "version": "0.1.0",
140 153 "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.1.0.tgz", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.1.0.tgz",
 
147 160 "version": "1.0.2", "version": "1.0.2",
148 161 "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
149 162 "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
163 },
164 "yamljs": {
165 "version": "0.3.0",
166 "resolved": "https://registry.npmjs.org/yamljs/-/yamljs-0.3.0.tgz",
167 "integrity": "sha512-C/FsVVhht4iPQYXOInoxUM/1ELSf9EsgKH34FofQOp6hwCPrW4vG4w5++TED3xRUo8gD7l0P1J1dLlDYzODsTQ==",
168 "requires": {
169 "argparse": "^1.0.7",
170 "glob": "^7.0.5"
171 }
150 172 } }
151 173 } }
152 174 } }
File package.json changed (mode: 100644) (index 70449d3..f0e44cf)
14 14 "minimist": "^1.2.5", "minimist": "^1.2.5",
15 15 "prettier": "^2.0.2", "prettier": "^2.0.2",
16 16 "shelljs": "^0.8.3", "shelljs": "^0.8.3",
17 "tmp": "^0.1.0"
17 "tmp": "^0.1.0",
18 "yamljs": "^0.3.0"
18 19 }, },
19 20 "bin": { "bin": {
20 21 "ccargs": "./index.js" "ccargs": "./index.js"
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/mucbuc/ccargs

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

Clone this repository using git:
git clone git://git.rocketgit.com/user/mucbuc/ccargs

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