Adrien Marquès
27ace57523
Update CI and do not use github import path anymore
...
- use local self-hosted ci : drone instead of circle
- add go modules support
- update import path to be local : git.xdrm.io/go/nix-amer instead of
github.com/xdrm-brackets/nix-amer
2019-11-18 14:27:19 +01:00
Adrien Marquès
b752906d15
add minimal test to test ANY lines in bash decoder/encoder
2018-11-18 21:56:50 +01:00
Adrien Marquès
3331970eb5
fix cnf/parser/bash to restore ANY-typed lines + restore comments at the end of assignment lines properly
2018-11-18 21:50:02 +01:00
Adrien Marquès
bca2b145bc
fix tests
2018-11-18 19:09:28 +01:00
Adrien Marquès
0059dd90ea
add bash (environment variable export) file format
2018-11-18 19:08:18 +01:00
Adrien Marquès
c37893c209
lint
2018-11-16 06:57:57 +01:00
Adrien Marquès
bf391fd5a0
fix: cnf make cnf/* configuration formats more strict and not to include themselves (to really find out the good format) | add tests | TODO: json is a subset of yaml, create my own YAML parser that is strict to the 'well-known' YAML syntax
2018-11-15 17:26:11 +01:00
Adrien Marquès
b26dec8576
FIX: find config format from content : seek start of file before each
2018-11-15 14:48:02 +01:00
Adrien Marquès
8c3b300ab5
fix cnf/nginx | udpate tests
2018-11-15 12:04:45 +01:00
Adrien Marquès
87bf394536
lint tests
2018-11-13 21:36:19 +01:00
Adrien Marquès
a9a69a5728
add cnf/parser/nginx/decoder receiver/syntax/writer error
2018-11-13 21:33:16 +01:00
Adrien Marquès
a77923a686
add cnf/parser/nginx/encoder writer error
2018-11-13 21:11:15 +01:00
Adrien Marquès
685da832df
test default prefix/indent values + encoder errors
2018-11-13 21:06:39 +01:00
Adrien Marquès
3c0f4e0476
migrate to github
2018-11-13 13:13:32 +01:00
xdrm-brackets
7d50d2d252
rename commands : ins -> install, del -> delete, ser -> service, cnf -> set | readme add 'alias' command description
2018-11-12 22:54:37 +01:00
xdrm-brackets
7ceaf81ee5
update cnf/loader to infer parser (config format) from content
2018-11-12 20:01:09 +01:00
xdrm-brackets
aa3c8e472d
lint
2018-11-12 19:45:30 +01:00
xdrm-brackets
c27ab45bc2
update cnf/parser/nginx encoder+decoder to read the last line even if no newline '\n' char
2018-11-12 19:38:24 +01:00
xdrm-brackets
78d8d9a7a2
update/fix cnf/nginx (encoder, decoder, cnf/nginx) | add cnf/nginx tests
2018-11-12 19:22:24 +01:00
xdrm-brackets
ac5a7dbbfd
remove cnf/confl parser | add cnf/nginx conf parser using cnf/parser/nginx | implement cnf/nginx.Get()
2018-11-12 17:43:01 +01:00
xdrm-brackets
217cad09e0
update nginx/decoder to read nginx-location sections (location ~ *.php {}) | update encoder | update tests
2018-11-12 17:07:30 +01:00
xdrm-brackets
02bf3d9103
fix decoder + tests
2018-11-12 16:50:50 +01:00
xdrm-brackets
0d6067dda5
implement nginx/encoder + decode->encode test
2018-11-12 16:42:24 +01:00
xdrm-brackets
69f7cb47b8
remove trim() on comments (to keep comment indentation)
2018-11-12 15:38:43 +01:00
xdrm-brackets
73b953c35b
moved Line into line.go | remove unused fields (Number, Indent)
2018-11-12 15:35:45 +01:00
xdrm-brackets
14f68cbf8e
lint
2018-11-12 12:09:10 +01:00
xdrm-brackets
194b5647ee
update nginx/decoder (working for simplest case) | add tests for all line types + nested sections
2018-11-12 12:00:41 +01:00
xdrm-brackets
08b8cf8493
create nginx decoder (not fully working, but first step is ok)
2018-11-12 08:41:00 +01:00
xdrm-brackets
235e30aeb7
unexport ser/systemd | fixes (golint)
2018-11-11 19:03:05 +01:00
xdrm-brackets
052bfed769
add support for YAML format cnf/yaml + tests
2018-11-11 18:07:29 +01:00
xdrm-brackets
a6eb82102c
add support for CONFL format cnf/confl
2018-11-11 16:31:43 +01:00
xdrm-brackets
40d6526b64
unexport cnf/Json to json and cnf/Ini to ini
2018-11-11 15:34:00 +01:00
xdrm-brackets
cdd4b29334
update cnf/common interface to implement io.ReaderFrom + io.WriterTo | tested ini+json file update
2018-11-11 01:05:14 +01:00
xdrm-brackets
151ebce573
'cnf' working with INI files + loader + instruction executor now works
2018-11-10 19:04:16 +01:00
xdrm-brackets
cafd4063a0
update cfg/common interface to add Parse()->Read() and Write() methods | add 'ini' format + tests
2018-11-10 17:33:27 +01:00
xdrm-brackets
274d8af1f7
minfix
2018-11-08 13:41:44 +01:00
xdrm-brackets
ee73fee310
create internal/cnf generic loader
2018-11-08 13:40:36 +01:00
xdrm-brackets
204144bbd8
fix cnf/json set() method not to override already existing keys on same object level | update tests accordingly
2018-11-07 16:09:43 +01:00
xdrm-brackets
fa647530ea
add cnf/json set() + tests pass
2018-11-07 15:51:54 +01:00
xdrm-brackets
ad7c79d2f9
add cnf/json parse() and get() + minimal tests
2018-11-07 14:03:54 +01:00
xdrm-brackets
05e6b5a847
update common config interface
2018-11-07 14:03:30 +01:00
xdrm-brackets
9b3ad00f00
move packages into 'internal' folder
2018-11-06 21:31:55 +01:00