Commit Graph

108 Commits

Author SHA1 Message Date
Adrien Marquès 5998bd7b29 Merge branch 'master' of gogs:go/nix-amer
continuous-integration/drone/push Build is passing Details
2019-11-18 14:35:22 +01:00
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 a3b513a23b update readme 2018-11-18 22:50:20 +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 5f229709ad circle-ci add go fmt + go vet 2018-11-16 06:55:45 +01:00
Adrien Marquès 3c598ea419 circle-ci upload tests 2018-11-16 06:54:02 +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 2e3700786d fix/upd instruction/copy | add tests 2018-11-14 22:10:31 +01:00
Adrien Marquès fa8a0a5ae5 fix DryRun() for instruction/copy : create/remove file if does not exist, else try to open in WRITE mode 2018-11-14 20:21:34 +01:00
Adrien Marquès 1a7e1c2db0 add DryRun() method for instruction common interface | add DryRun() method to all instructions | TODO: tests + install/delete 2018-11-14 20:11:07 +01:00
Adrien Marquès 2f95acb851 fix tests 2018-11-14 11:38:21 +01:00
Adrien Marquès a6207e0a34 add parallelism [pre] section run before all other | update readme accordingly 2018-11-14 11:34:27 +01:00
Adrien Marquès 5fd41cae67 add parallelism with sections | todo: add [pre] section executed before all 2018-11-14 11:07:46 +01:00
Adrien Marquès 7e8b45d750 fix buildfile/reader to read last line (without NEWLINE) 2018-11-14 09:58:51 +01:00
Adrien Marquès 361c3f6c25 update shields 2018-11-13 21:50:10 +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 9d2219c3e4 fix readme set coveralls.io MASTER branch 2018-11-13 17:29:16 +01:00
Adrien Marquès 73a0bfdadb fix symbols DisplaySize() + Align() + tests 2018-11-13 17:26:04 +01:00
Adrien Marquès 6cdbf07d37 test clifmt/Title + Warn + Info 2018-11-13 16:22:57 +01:00
Adrien Marquès b4d6b8d8ff add clifmt/colors minimal test 2018-11-13 16:03:57 +01:00
Adrien Marquès d4daa435e5 readme: add 'copy' command 2018-11-13 14:23:36 +01:00
Adrien Marquès 48600584a0 add copy command (instruction) 2018-11-13 14:21:36 +01:00
Adrien Marquès c548e6a5e8 minmod 2018-11-13 14:08:49 +01:00
Adrien Marquès d9bbbfeea3 update readme : add installation instructions 2018-11-13 14:06:33 +01:00
Adrien Marquès 7ddc9a3006 update readme : add toc (Table Of Contents) 2018-11-13 13:50:33 +01:00
Adrien Marquès 3c0f4e0476 migrate to github 2018-11-13 13:13:32 +01:00
xdrm-brackets b60b03539f add alias use in 'run' and 'set' instructions (has priority over real path) 2018-11-13 00:41:42 +01:00
xdrm-brackets 492835a67a create alias instruction 2018-11-13 00:29:57 +01:00
xdrm-brackets ff458d83da fix symbols with a *consistent* method (regexp) | add debug method escape(string) string 2018-11-13 00:20:05 +01:00
xdrm-brackets 8a08f429d2 update cli UI/UX with elapsed time on success | add run command (issue with indentation) 2018-11-12 23:46:10 +01:00
xdrm-brackets 1095283be7 rename instruction/* packages according to command renaming 2018-11-12 22:56:41 +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 d88b053dc5 update readme for nginx parser 2018-11-12 19:40:57 +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