Commit Graph

26 Commits

Author SHA1 Message Date
Bert Jacobs
d4087be780 Move shared *Path functions to util.go 2021-09-13 18:27:47 +02:00
Bert Jacobs
0ba821eb7e Pass result of "clobber path" prompt to caller, stop task
The end user would be prompted if a file is going to be overwritten,
but homemaker would still attempt to do so no matter the answer.

Move the retry-functionality of cleanPath inside this function so that
the function itself can return a boolean to indicate if the calling task
is free to continue. If the path is not clean then homemaker can just
move on to the next file or next task.
2021-09-13 18:23:39 +02:00
20746f6640 Fixing silly flag test error 2015-11-08 10:18:19 +09:00
67a97669ca Adding unlink parameter 2015-09-06 14:45:57 +09:00
c29b8b8200 Cleanup 2015-09-04 12:15:57 +09:00
6183bbfc46 Adding prompts 2015-08-11 14:49:21 +09:00
9c24c78cbc Style changes 2015-08-11 13:52:46 +09:00
813de95ee7 Revert "Style changes"
This reverts commit a644ed8f7f.
2015-08-10 18:33:22 +09:00
a644ed8f7f Style changes 2015-08-10 13:42:31 +09:00
2a10a02784 More work on macros 2015-07-20 20:29:05 +09:00
20602f0a96 Cleanup 2015-07-20 18:53:42 +09:00
bcb06d99ce Support environment variables in commands 2015-06-25 12:31:25 +09:00
eaa73b87c6 Style fixes 2015-06-17 22:20:01 +09:00
cccb9b3903 Allow directory creation mode to be specified in configuration files; bugfixes 2015-04-09 19:07:06 +09:00
5e4ff87716 Updating documentation, swapping source and destination fields for links 2015-04-06 10:20:41 +09:00
74fc847f6c Renaming flags 2015-04-05 18:40:46 +09:00
7876ad587f Adding support for commands 2015-04-05 17:55:09 +09:00
1f8da243cf Simplify 2015-04-05 16:53:32 +09:00
7ebecef0ee Improved error handling 2015-04-03 10:57:36 +09:00
86ff7e4d45 Changing format 2015-04-02 23:47:22 +09:00
2c89063d13 Refactoring 2015-04-02 19:18:58 +09:00
6fad7caba6 Plumbing flags 2015-04-02 18:31:36 +09:00
e026f82efd Refactoring 2015-04-02 11:29:04 +09:00
52b647e16d Cleanup 2015-04-01 18:48:32 +09:00
b548ed7d15 Work in progress 2015-04-01 18:44:10 +09:00
4adc700f1c Cleanup 2015-04-01 17:33:50 +09:00