1
0
Fork 0
mirror of synced 2024-12-22 06:01:07 -05:00
Commit graph

143 commits

Author SHA1 Message Date
Anish Athalye
38c0f65801 Add more options for shell commands
This commit introduces an extended configuration syntax for shell
commands. This syntax allows for specifying whether the stdin, stdout,
and stderr streams are enabled.
2015-02-03 11:53:05 -05:00
Anish Athalye
0b4b79e422 Allow nonexistent directories to be cleaned
Make nonexistent directories be skipped when cleaning.
2015-01-26 10:38:08 -05:00
Anish Athalye
69502854aa Fix compatibility
This commit fixes usage of the Singleton metaclass so that it is
compatible with both Python 2 and Python 3.
2015-01-26 10:36:36 -05:00
Anish Athalye
c638e25941 Clean up code
Fix typos and remove unused code.
2015-01-26 10:36:11 -05:00
Anish Athalye
2865477dca Update dates 2015-01-19 19:05:49 -05:00
Anish Athalye
68c6126f89 Update editorconfig
Trailing whitespace is significant in Markdown files.
2014-12-30 00:47:51 -05:00
Anish Athalye
1221ad0f9b Update README
Add a note about copying the install script and not using a symbolic
link.
2014-12-27 15:17:38 -05:00
Anish Athalye
2eb6353b16 Add information on contributing 2014-12-20 00:55:17 -05:00
Anish Athalye
dde4644ee2 Merge branch 'jaxxstorm/version' 2014-12-18 20:07:14 -05:00
lbriggs
285543ac6a Fix version check
The version checking code fails on Python 2.6 and earlier.
`sys.version_info` only became a named tuple in Python 2.7. The
recommended way to get the check to work in earlier versions of Python
is to access it as a regular tuple.
2014-12-18 20:05:03 -05:00
Anish Athalye
992ba4a2a9 Fix editorconfig
This project uses an indent of 4 spaces for Python code.
2014-12-01 21:12:08 -05:00
Anish Athalye
6d08479626 Add editorconfig 2014-11-20 15:22:49 -05:00
Anish Athalye
a55a179b71 Merge branch 'kstark/ignore-dirty-pyyaml' 2014-11-20 11:09:48 -05:00
Kyle
b41636246d Ignore dirty pyyaml submodule
When used, pyyaml generates *.pyc files, which will cause the submodule
to appear as dirty. This will bubble all the way up to any parent
repository that include Dotbot as a submodule. This change makes it so
that changes in the pyyaml repository do not cause the parent repository
to appear to have modified files.
2014-11-20 11:07:44 -05:00
Anish Athalye
bc43348f42 Fix bug with forced links not working in all cases
This commit fixes a bug where forced links did not work on certain types
of bad links. Until this fix, forced links only worked if the original
was a real file or directory. This commit fixes this, so that the forced
link option also works when the original is a broken or incorrect
symbolic link.
2014-11-09 09:08:13 -05:00
Anish Athalye
33d602bb93 Add YAML support
Add support for YAML format configuration files. In addition, this
commit adds instructions about YAML config files to the README, and it
also changes the README to encourage use of YAML instead of JSON.
2014-10-27 20:31:40 -04:00
Anish Athalye
afebc0bb2f Add functionality to create parent directories
This commit introduces an additional option for extended configuration
syntax for linking. It adds the "create" parameter which results in
automatically creating a parent directory if necessary before linking a
file.
2014-10-22 14:44:40 -04:00
Anish Athalye
13c925be87 Add functionality to forcibly link items
This commit introduces an extended configuration syntax for linking
files and directories. Currently, this syntax allows for specifying
items to be forcibly linked, overwriting existing files or directories
if necessary.

The extended configuration syntax was proposed by Travers McInerney
<travers@mcinerney.me>.
2014-10-22 14:42:23 -04:00
Anish Athalye
58e4fb50b1 Update README
Improve documentation with specification and an example for each type of
task.
2014-10-22 11:10:49 -04:00
Anish Athalye
1733b54c87 Fix whitespace error 2014-10-17 10:05:47 -04:00
Anish Athalye
1d2918f82e Fix bug in install script
Do not treat unbound variables as an error.
2014-09-15 07:27:06 -04:00
Anish Athalye
09a80230f5 Clean up code 2014-08-20 14:00:00 -07:00
Anish Athalye
5103c10a5f Add link to tutorial 2014-08-18 21:07:24 -07:00
Anish Athalye
11dd1e2eac Make install script safer
Call `set -e` to make the script exit if any command fails and `set -u`
to treat unset variables as an error.
2014-08-18 11:57:17 -07:00
Anish Athalye
62db03c969 Fix bug in install script
Double quote array expansion to prevent breaking on spaces.
2014-08-05 15:30:00 -07:00
Anish Athalye
d17e5c8b48 Fix portability for install script 2014-08-03 14:46:55 -07:00
Anish Athalye
c62737598c Update README 2014-08-03 14:45:18 -07:00
Anish Athalye
48112e4487 Update README 2014-07-22 20:01:54 -07:00
Anish Athalye
92ed009245 Add keyboard interrupt handler 2014-07-19 00:29:49 -07:00
Anish Athalye
5394184d14 Display better error message when linking fails
When failing to symbolically linking files, display the names of the
files that could not be linked. This makes it easier to troubleshoot the
error without having to manually figure out which files failed to link.
2014-07-17 13:40:08 -07:00
Anish Athalye
a97096ef96 Make Linker check for existence of targets
Linker now reports an error when links are configured to point to
nonexistent targets. This fixes the old behavior where Linker silently
created invalid links.
2014-07-15 18:25:53 -07:00
Anish Athalye
4feb4845e8 Update LICENSE
Make license file plain ASCII text.
2014-06-15 11:39:10 -07:00
Anish Athalye
7200832465 Fix source compatibility with Python 3
According to PEP 394, `python` should only be used in the shebang line
for scripts that are source compatible with both Python 2 and Python 3.

In previous versions of Dotbot, on certain systems where `python`
referred to `python3`, running Dotbot would throw an exception due to a
SyntaxError. This can be fixed by making Dotbot source compatible with
both Python 2 and Python 3.
2014-06-14 23:56:33 -07:00
Anish Athalye
0e3e85c366 Update LICENSE 2014-06-09 22:39:40 -07:00
Anish Athalye
abb825048b Add Cleaner executor 2014-06-08 11:32:45 -07:00
Anish Athalye
24f49603c8 Update README 2014-05-30 10:39:24 -04:00
Anish Athalye
862c60f101 Reformat LICENSE 2014-05-01 11:15:09 -04:00
Anish Athalye
e85dbfb7dd Remove code duplication in executors 2014-04-24 15:41:34 -04:00
Anish Athalye
564c1f13bf Update README 2014-03-21 00:48:42 -04:00
Anish Athalye
a2b6e0a185 Add README 2014-03-20 23:53:02 -04:00
Anish Athalye
a8edc8ee2b Add license 2014-03-20 21:59:23 -04:00
Anish Athalye
4da9a85b30 Add example install script 2014-03-20 21:59:23 -04:00
Anish Athalye
60a560e976 Initial commit 2014-03-20 18:57:56 -04:00