template / windows / files / profile.go
Branch windows · default branch · all branches
profile.go
| 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-07 | 52e9ad7 | Removed pwsh dependency from both the Makefile and the default profiles. | Pavel Safronov |
| 2022-11-06 | 10676da | A few minor changes: - added a way to have a disabled profile - added a few more tests - made the new name method more generic by supplying a validator function | 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-02 | 886f7fa | Starting to add logging, made a lot of reporting messages into debug logs. | 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-30 | c3fc7a2 | Adding tests and monkey-patching various OS operations. | Pavel Safronov |
| 2022-10-28 | 687d562 | Lots of internal changes: - simplified the pattern data to be of two types: pre-generation, post-generation, and this simplified a lot of things - simplifications and testing - added a way to run the postscripts even if the generation failed (for the 'daily' profile, this just opens VSCode in the destination folder) | 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-23 | dd78994 | Updated docs and removed all mentions of Dropbox. The default locations are now all directly under ~. Added support for passing arguments to make. Added disambiguation to one of the errors. | Pavel Safronov |
| 2022-10-21 | 5e7795d | Added support for creating files within a folder. | 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-05 | 763c260 | Adding a makefile and more tests. | Pavel Safronov |
| 2022-10-05 | 55c36f6 | Got extras working: - added support for "extra" template data being available from YAML - added tests for extras - added a flag to use the default config (this is a test-only setting) - added VSCode launch task to debug tests | Pavel Safronov |
| 2022-10-04 | 2c2e124 | Adding script execution type and other changes: - added a git profile - added a test profile | Pavel Safronov |
| 2022-09-25 | fe139e4 | Added support for file template strings, instead of needing to have a file template. | Pavel Safronov |
| 2022-09-24 | d1bc130 | Fixed issue with post script needing to be split up. Now everything works as expected. Changes: - added "slices" package to do basic array checks (contains in this case) - made all post scripts []string, instead of [][]string - lowercased errors, because that's apparently the style - added Description to each profile - Description gets displayed when "template list" is run - started forbidding profile names that clash with actions | Pavel Safronov |
| 2022-09-24 | 4a7759d | Changed a few things: - added folder profile, which creates a versioned folder in current location - added "create-react-app" profile, that creates a versioned folder in current locaiton and installs "create-react-app" there - added ability to have multiple script executions - added "template list" method: it lists the known profiles - added "template get XYZ" method: it shows XYZ profile as YAML | Pavel Safronov |
| 2022-09-23 | b65fb5e | Added some more profile validations: - profiles must have names - profiles must have script shell if postscript is set - treating OS="" as "All" | Pavel Safronov |
| 2022-09-23 | 0e962bb | Some simplification and minor fixes: - removed some unnecessary functions - added tests for version presence - added logging for postscript execution - added postscript fixes for handling spaces in project name | Pavel Safronov |
| 2022-09-23 | 71bdf57 | Adding file templates support: - file profiles can specify a file template - template is templated with name, time, and project name - added install script that copies the templates to user directory - removed extraneous tasks and launch configs, no just using a single launch config to reinstall everything - added a good starting template for blog posts | Pavel Safronov |
| 2022-09-23 | c62570e | Minor reorganization: - put all name pattern stuff in one file - put all profile stuff in one file - split up the tests similarly | Pavel Safronov |