1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00
Commit Graph

484 Commits

Author SHA1 Message Date
Tim Byrne
4ae504c533 Merge alternative cyphers changes into develop 2020-07-17 14:07:10 -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
Travis A. Everett
9132b6dec9 Fix regexp with space for compatibility 2020-04-02 22:41:08 -05:00
Tim Byrne
778c33145c Remove legacy code which was reintroduced 2020-02-28 07:58:07 -06:00
Tim Byrne
0995f38b06 Merge pull request #138 from ldotlopez/master
I signed all commits first
2020-02-27 08:24:25 -06:00
Luis López
831c9ec09d Testing: add new config items to tests 2020-02-27 08:21:48 -06:00
Luis López
9fe5377749 Fix some typos and code style 2020-02-27 08:21:27 -06:00
Luis López
7698adfd77 Rebase on top of upstream/develop 2020-02-27 08:21:14 -06:00
Luis López
8e2d85de7f Merge from upstream 2020-02-27 08:20:45 -06:00
Luis López
67ce492b2a Added undocumented config yadm.openssl-ciphername 2020-02-27 07:44:44 -06:00
Luis López
bde5ecbc66 Deduplicate openssl cipher name code (and change default value) 2020-02-27 07:44:41 -06:00
Luis López
baaeb88628 Initial support for alternative cyphers.
This patch implements an OpenSSL cypher (via openssl enc command). It has to be enabled using yadm.cypher configuration key.

Some rough edges:
- archive file refers to GPG (.gpg extension)
- no test cases
2020-02-27 07:43:57 -06: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
2.4.0
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