template / windows / files / config_test.go
Branch windows · default branch · all branches
config_test.go
| 2022-11-15 | 75a066b | Adding linting to the project. This relies on `golangci-lint`, which has to be installed first. | Pavel Safronov |
| 2022-11-15 | 9573ca0 | Adding tests, getting code coverage to be reasonable for most files (main.go is at 0%), and might be there for a bit. | Pavel Safronov |
| 2022-11-12 | 5e424f1 | Added a flag to use default config settings instead of loading from disk. Did a bit of reorg as well, to simplify. Creating subfiles' subfolders now. | Pavel Safronov |
| 2022-11-03 | 8c15a71 | Refactored a bit: - made list/get/reset into actual commands - reworked how command settings are parsed, so this can happen (mostly) in the same spot - added a few notes to the readme - test updates - added a new profile "therapy-open" that opens the therapy folder | Pavel Safronov |
| 2022-11-02 | e86c26a | A few changes: - improving the YAML representation of configs: fields reorganized, empty fields excluded - change some log.Debug back to fmt.Printf calls, whenever the logged info is important to the user - minor readme updates - testing of config equality is now done by converting objects to YAML and comparing that text | Pavel Safronov |
| 2022-11-01 | ae89a42 | Lots of small-ish changes: - Added support for user template files. This setting is exposed through a new parameter that has a default value of "~/.template.user.yaml". This file is combined with the "global" config: same-name profiles in user config replace profiles in global config. That's the merge. - Added more config validation in more places. - Standardized the name of the error variable to `err` across the project - Added a `make all` target that builds, runs tests, then installs the project locally - Added more information when a profile doesn't work on the current system - Postscript output is now captured and logged - Removed the no longer used (and "overloaded") findProfile function | Pavel Safronov |
| 2022-10-26 | 4ded421 | Removing TemplatePath. File templates are now loaded only from the config. Also made some simplifications and refactored where we calculate the full config path. Added a `reset` command (`template reset`) that will reset the config file to be the default config that's in the code. | Pavel Safronov |
| 2022-10-21 | 1a02ef4 | Added ParametrizedText type. | Pavel Safronov |
| 2022-10-21 | b058643 | Starting work on creating files inside a templated folder. This commit gets all tests working as well. | Pavel Safronov |
| 2022-10-06 | 05f9e8e | Added more tests. | Pavel Safronov |
| 2022-10-06 | a464255 | Adding more tests. | Pavel Safronov |
| 2022-10-05 | 763c260 | Adding a makefile and more tests. | Pavel Safronov |