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
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
Tim Byrne
4546636336
Merge pull request #194 from rasa/rasa/remove-quotes-from-distro
2020-01-14 07:14:04 -06:00
Tim Byrne
6e444736ab
Tests for encrypt_with_checksums hooks
2020-01-13 08:06:15 -06:00
Tim Byrne
8c6a96545d
Add organization and documentation to hooks collection
2020-01-10 08:37:24 -06:00
Tim Byrne
2af9c3a524
Merge pull request #188 from mzuther/encrypt_with_checksums
2020-01-10 07:54:29 -06:00
Martin Zuther
0009bb350b
get rid of echo
2019-12-30 00:43:24 +01:00
Martin Zuther
499837bd80
apply code review changes
2019-12-30 00:34:27 +01:00
Martin Zuther
9c9a750009
get rid of dependencies (pure bash)
2019-12-29 15:53:01 +01:00
Martin Zuther
45b218d5c1
support encrypted files in "yadm list"
...
* export some helper functions to hooks
2019-12-29 15:21:55 +01:00
Martin Zuther
bd19e31c6e
get rid of dirname
2019-12-29 12:51:29 +01:00