fuzzyworld

template / windows / files / profile_test.go

Branch windows · default branch · all branches

profile_test.go

Commits that changed this file, newest first · file

2022-11-17fe86bedGetting the build to work on Windows again. Going back to pwsh, since that's a common shell.Pavel Safronov
2022-11-159573ca0Adding 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-125e424f1Added 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-0752e9ad7Removed pwsh dependency from both the Makefile and the default profiles.Pavel Safronov
2022-11-038c15a71Refactored 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 folderPavel Safronov
2022-11-01ae89a42Lots 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 functionPavel Safronov
2022-10-30a5ad914Added a failure test and added version info to README.Pavel Safronov
2022-10-30c3fc7a2Adding tests and monkey-patching various OS operations.Pavel Safronov
2022-10-264ded421Removing 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-211a02ef4Added ParametrizedText type.Pavel Safronov
2022-10-21b058643Starting work on creating files inside a templated folder. This commit gets all tests working as well.Pavel Safronov
2022-10-0605f9e8eAdded more tests.Pavel Safronov
2022-10-05763c260Adding a makefile and more tests.Pavel Safronov
2022-09-23c62570eMinor reorganization: - put all name pattern stuff in one file - put all profile stuff in one file - split up the tests similarlyPavel Safronov