Commit Graph

425 Commits

Author SHA1 Message Date
Tim Byrne 7628a1b61d
Release 2.5.0
Update version number and update documentation

* Support for transcrypt (#197)
* Support ESH templates (#220)
* Preserve file mode of template (#193)
* Fish shell completions (#224)
* Fix alt processing when worktree is `/` (#198)
* Assert config directory if missing (#226, #227)
* Documentation improvements (#229)
2020-08-09 15:54:31 -05:00
Tim Byrne 4ff12c7125
Sort contributors by lines changed
Previously number of commits were used
2020-08-09 15:54:21 -05:00
Tim Byrne 24e3dab328
Fix alternate file processing when worktree is / (#198) 2020-07-17 11:17:58 -05:00
Tim Byrne 102ba5d558
Preserve file mode of template (#193)
Any processed templates will inherit the file mode of the source
template.
2020-07-11 21:52:28 -05:00
Tim Byrne 6654e29c62
Merge pull request #220 2020-07-08 16:17:24 -05:00
Tim Byrne ed4a4a5fbd
Fix bug with out-of-sync sources
The indexes of targets, scores, sources, etc. must be kept in sync.
2020-07-08 16:16:48 -05:00
Tim Byrne 87f81143b2
Add unit test for alternate order
Ensure that any alternates for YADM_CONFIG are processed prior to
templates.
2020-07-08 16:16:48 -05:00
Tim Byrne b056051603
Identify yadm's configuration using $YADM_CONFIG 2020-07-08 16:16:48 -05:00
Tim Byrne 7f48942934
Update man page for ESH 2020-07-08 16:16:47 -05:00
Tim Byrne 71ecf27291
Update testbed docker image 2020-07-08 16:16:47 -05:00
Tim Byrne 6d8494a35f
Fix linting errors 2020-07-08 15:30:15 -05:00
Tim Byrne 9746d907ec
Merge pull request #227 from jonasc/assert-config-parent-exists 2020-07-08 15:13:39 -05:00
jonasc 9ee83c4b3f
Update test/test_config.py 2020-07-08 15:13:06 -05:00
jonasc 60b23e33e8
Assert existence of config file's parent directory
Fixes TheLocehiliosan/yadm#226

When a config file path is passed to yadm whose parent directory does
not exist, git (and hence yadm) fails without writing the file.
Yadm should, however, make sure that the directory exists s.t. git can
just write to the file.
2020-07-08 15:13:03 -05:00
Tim Byrne 51752233e9
Revert yadm.md & CONTRIBUTORS
yadm.md is generated from yadm.1 during release.
CONTRIBUTORS is generated from Git history during release.
2020-07-08 03:43:19 -05:00
Tim Byrne 2e844766dd
Merge pull request #220 from daiglej/AddSupportForEsh 2020-07-08 00:37:36 -05:00
Tim Byrne 69aefb297c
Migrate from travis-ci.org to travis-ci.com 2020-06-15 15:30:47 -05:00
Tim Byrne ed6185e841
Merge pull request #229 from tcondit/master 2020-06-14 21:32:10 -05:00
Tim Byrne 5f2c84a633
Merge pull request #224 from soraxas/master 2020-06-14 11:27:22 -05:00
Tim Condit e5d88e96db
Minor typo 2020-06-10 17:49:01 -07:00
Tin Lai ecdc985ab0
add manual entry for fish completions 2020-06-04 14:31:57 +10:00
Tin Lai f5e8599de4
improve fish completion by adding more completion options 2020-06-03 18:02:04 +10:00
Jonathan Daigle bea6e5506a
Process config alt before any other.
This allows to version the configuration, using alt and to still be
able to use those configuration values in esh template
(using <% yamd config some-config %> )
2020-05-27 21:13:19 -04:00
Jonathan Daigle f348e154c7
Add support for ESH 2020-05-27 19:38:15 -04:00
Tin Lai f0a8f31d1b
implement fish autocomplete 2020-05-28 01:36:17 +10:00
Tim Byrne 550a6b4340
Add transcrypt info to man page 2020-02-21 08:15:58 -06:00
Tim Byrne 4b99ece480
Support transcrypt (#197)
Support is inherently provided by `enter`, which supports a command.
I've added a `transcrypt` command, which is really just an alias
under-the-hood for "enter transcrypt".
2020-02-21 08:05:56 -06:00
Tim Byrne ee9ffb6828
Reorder command list 2020-02-21 07:55:58 -06:00
Tim Byrne dd86c8a691
Release 2.4.0
Update version number and update documentation

* Support multiple keys in `yadm.gpg-recipient` (#139)
* Ensure all templates are written atomically (#142)
* Add encrypt_with_checksums to the hooks collection (#188)
* Escape white space in YADM_HOOK_FULL_COMMAND (#187)
* Improve parsing of os-release (#194)
* Improve identification of WSL (#196)
* Fix troff warnings emitted by man page (#195)
* Write encrypt-based exclusions during decrypt
2020-02-06 07:53:18 -06:00
Tim Byrne 79e93e38bc
Fix error when /proc/version is missing 2020-02-03 08:30:50 -06:00
Tim Byrne 45f1d93193
Add test for WSL identification 2020-02-03 08:30:34 -06:00
Ross Smith II 062181be4a
Simplify WSL identification 2020-02-03 08:27:54 -06:00
Tim Byrne 69cde7f83c
Exclude files listed in yadm/encrypt when decrypt is called
Previously this would only happen when encrypting.
2020-01-30 09:39:10 -06:00
Tim Byrne bd68229c57
Use include "venv" instead of "virtualenv" 2020-01-30 08:42:17 -06:00
Tim Byrne 1200d53f62
Add info about changes to YADM_HOOK_FULL_COMMAND 2020-01-27 07:35:09 -06:00
Tim Byrne 02bedd712a
Add example of parsing YADM_HOOK_FULL_COMMAND 2020-01-27 07:31:58 -06:00
Tim Byrne 9a2883985b
Test for escaped values in YADM_HOOK_FULL_COMMAND 2020-01-24 08:33:30 -06:00
Tim Byrne ccb75b97ea
Escape space in YADM_HOOK_FULL_COMMAND (#187)
Backslashes are used to escape spaces, tabs, and backslashes. This
allows hooks to identify separate parameters (which are space
delimited).
2020-01-24 08:33:07 -06:00
Tim Byrne 3b820835ab
Test for warnings from man (#195) 2020-01-21 07:26:10 -06:00
Tim Byrne d16f4b134a
Add man to testbed Docker image 2020-01-21 07:26:00 -06:00
Tim Byrne d5b217f850
Merge pull request #195 from rra/manpage-fix 2020-01-21 07:24:42 -06:00
Tim Byrne 76c82c763e
Improve identification of WSL (#196)
Ignore case when searching for Microsoft inside /proc/version.
2020-01-20 07:52:50 -06:00
Russ Allbery 45ccf09aa5
Fix leading vim comment
Change `."` to `.\"` for a *roff comment.  `."` appears to do the
same thing, but only accidentally because it's treated as an unknown
macro and then ignored by default.  `man --warnings` will show the
problem:

  % man --warnings ./yadm.1 > /dev/null
  troff: <standard input>:1: warning: macro '"' not defined
2020-01-17 11:41:34 -08:00
Tim Byrne 04b98a96cb
Ensure all templates are written atomically
This takes jonasc's change, and applies it to all template writing. Also
removes the dependency on mktemp, and only moves files if they are
successfully written.
2020-01-16 16:27:59 -06:00
Tim Byrne 3e42bd9f52
Merge pull request #142 from jonasc/master
Resolved conflicts, and signed commit from jonasc.
2020-01-16 12:59:32 -06:00
jonasc a1845c6e8a
Write template result to temporary file and move
This prevents problems with programs which watch the file for changes and will
first be presented an empty file.
One such example which will show a notification message about an empty config
file is Alacritty.
By writing to a tempory file and then moving it (atomically?) to the real
location this problem is mitigated.
2020-01-16 12:58:38 -06:00
Tim Byrne 75d2747aa0
Add test for multiple recipients 2020-01-15 09:17:26 -06:00
Tim Byrne 83c0edd9fb
Mention multiple recipients in man page 2020-01-15 08:07:04 -06:00
Tim Byrne 0b22220e3c
Merge pull request #139 from stigtsp/multiple-gpg-recipients 2020-01-14 08:08:44 -06:00
Tim Byrne d9f68978fa
Add test for quoted os-release 2020-01-14 07:21:02 -06:00