Commit Graph

19 Commits

Author SHA1 Message Date
Sean Hammond
cf25aa448e Turn it into a proper Python package 2015-02-23 17:07:56 +00:00
Sean Hammond
b306544082 Add LICENSE file 2015-02-23 16:59:43 +00:00
Sean Hammond
58ea1d15f3 If action is tidy then don't bother hecking if TO_DIR is valid. 2010-06-15 20:42:44 +01:00
Sean Hammond
df153565d4 Delete some no longer necessary lines from the README. 2010-05-01 01:06:51 +01:00
Sean Hammond
3d8050a3e7 Improve the messages that dotfilemanager report gives. 2010-05-01 00:59:21 +01:00
Sean Hammond
dbe2a273f6 Add usage instructions to top of README. 2010-05-01 00:55:06 +01:00
Sean Hammond
04172f4c40 Revert "Don't require TO_DIR argument if action is TIDY,"
This change was not necessary (TO_DIR was never required), the wrong
behaviour I was seeing was due to a different bug (which has been fixed
by commit ec76c782c6).

This reverts commit bc6bd6c777.

Conflicts:

	dotfilemanager.py
2010-05-01 00:51:12 +01:00
Sean Hammond
db4dab0953 Correct the name of the program in usage(). 2010-05-01 00:42:10 +01:00
Sean Hammond
ec76c782c6 Expand args to absolute paths before checking their validity.
This fixes a bug in which the validity of FROM_DIR and TO_DIR were
checked before ~ and relative paths in those arguments were expanded,
sometimes this could cause dotfilemanager to complain that a valid path
was invalid. Expand the paths and _then_ check their validity.

You can now just do `dotfilemanager tidy` (with no further arguments) to
tidy up symlinks in your homedir, and `dotfilemanager report` or
`dotfilemanager link` to report on or make links from ~ into
~/.dotfiles.
2010-05-01 00:34:45 +01:00
Sean Hammond
bc6bd6c777 Don't require TO_DIR argument if action is TIDY, 2010-04-30 23:06:22 +01:00
Sean Hammond
0e7156d022 Move the gian docstring into a README file. 2010-03-08 00:06:46 +00:00
Sean Hammond
24c0732753 Support DOTFILEMANAGER_HOSTNAME environment variable.
Fix bug with relative paths: always convert paths retrieved from the
command line args or from reading a link to absolute paths and expand
~'s.

Silence some print statements unless doing the report action.

Delete an unnecessary `path = os.path.join(to_dir,filename)` line.
2010-03-07 23:26:18 +00:00
Sean Hammond
e2fce1a2fb Change the command-line interface. Don't use optparse just use sys.argv:
makelinks link|tidy|report [FROM_DIR [TO_DIR]]
2010-02-08 09:38:19 -05:00
Sean Hammond
3af41d5a93 Remove an unnecessary elif. 2010-02-08 09:37:31 -05:00
Sean Hammond
ff00673d19 Add a tip to the docstring about how to handle ~/.config 2010-02-08 09:36:35 -05:00
Sean Hammond
1c778b471a Tweak a comment. 2009-11-11 15:17:54 +00:00
Sean Hammond
ab94916b22 Tidy up the imports (move them all onto one line) 2009-11-11 15:15:57 +00:00
Sean Hammond
52ee27eca9 Tweaking the TODOs in the module docstring. 2009-11-11 15:15:04 +00:00
Sean Hammond
ddc4ce5f3d Initial commit. Feature-complete except for recursing into
subdiretories.
2009-11-11 15:09:37 +00:00