Commit Graph

165 Commits

Author SHA1 Message Date
2c03f8292c Update README 2023-12-31 13:14:15 -08:00
f504a95a69 Update path 2023-12-30 20:21:25 -08:00
9e98e03e42 Cleanup 2023-12-30 11:20:12 -08:00
0682a0d249 Update README 2023-12-04 20:02:59 -08:00
59fadc5961 Update README 2022-07-14 14:15:40 -07:00
8c887ca0e7 Move to foosoft.net 2022-07-03 21:07:02 -07:00
61a139d47f Add build script, site metadata, update binary page 2021-12-14 17:32:37 -08:00
Alex Yatskov
0a90c2e21c
Merge pull request #34 from albertdev/bugfix/use-filepath-package
Use filepath package throughout for Windows support
2021-12-14 15:07:59 -08:00
Bert Jacobs
edb42a0e3b Use filepath package throughout for Windows support
The "path" package supports only forward slashes in paths, like those
found in *nix operating systems or URLs.

Meanwhile Windows with its CP/M and QDOS ancestry requires drive letters
and backslashes, and thus the "filepath" package needs to be used.
2021-12-14 23:40:23 +01:00
Alex Yatskov
72ff78498b
Merge pull request #33 from albertdev/bugfix/platform-indedependent-homedir
Use platform independent os.UserHomeDir() function
2021-12-14 14:18:07 -08:00
Alex Yatskov
ddbd7c428a
Merge pull request #32 from albertdev/bugfix/rework-clobber-prompt
Continue to next file / task when pressing 'n' at clobber prompt
2021-12-14 14:17:39 -08:00
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
Bert Jacobs
8d703e95ae Use platform independent os.UserHomeDir() function
Pull request #7 replaced some code blocking cross-compilation. However,
the "HOME" environment variable is not available on Windows.

For this reason, Go introduced a dedicated method in the os package
starting from version 1.12.
2021-09-13 17:23:35 +02:00
0066db5487 Update README 2021-06-08 20:55:55 -07:00
0e2582fa5e Updating README.md 2019-04-28 16:02:15 -07:00
dbf9c3f2cf Updating README.md 2019-04-28 12:33:41 -07:00
da7b770f11 update license file 2019-04-28 11:45:38 -07:00
cdbefc2e35 Updating README.md 2019-04-08 16:57:09 -07:00
Alex Yatskov
4e5c9f2b2f
Merge pull request #27 from zx42/master
Enable Go 1.11+ modules
2019-02-09 08:54:28 -08:00
zx42
266df2e063 Enable modules 2019-02-09 12:53:08 +01:00
5b06dcec1f Updating README.md 2019-01-05 19:43:49 -08:00
cb3f8cb14d Updating README.md 2017-10-02 21:05:56 -07:00
9cee32fd93 Updating README.md 2017-10-01 12:01:51 -07:00
694c76bceb Updating README.md 2017-09-29 17:03:58 -07:00
Alex Yatskov
a17a114360 Merge pull request #22 from SnoFox/jj-fix-templates-in-subdirs
Don't create a blank template when parsing templates
2017-09-05 11:39:26 -07:00
Josh Johnson
94f398c7a7 Don't create a blank template when parsing templates
This created a template with two entries within it; using
template.Execute would execute an empty template when you attempted to
use templates within a sub-directory
2017-09-04 17:03:33 -07:00
5acca0500e Updating README.md 2017-07-30 17:32:32 -07:00
Alex Yatskov
a514189f6c Merge pull request #20 from breml/cmd-to-env
Allow to set env variables based on commands
2017-07-10 09:11:31 -07:00
Alex Yatskov
1bf7e1ebff Merge pull request #21 from breml/gitignore
Add .gitignore for Go
2017-07-10 09:11:00 -07:00
Lucas Bremgartner
105f0cc01b Add .gitignore for Go
based on github.com/github/gitignore
2017-07-10 15:17:47 +02:00
Lucas Bremgartner
9c0c5c210d Allow to set env variables based on commands 2017-07-10 15:13:22 +02:00
Alex Yatskov
035424a98a Merge pull request #19 from breml/fix-typo
Typo
2017-07-01 10:30:36 -07:00
Lucas Bremgartner
534ad2296d Typo 2017-07-01 15:26:17 +02:00
Alex Yatskov
92b243ad1f Merge pull request #16 from breml/template
Add template functionality
2017-06-30 09:10:05 -07:00
Alex Yatskov
852aa011b8 Merge pull request #18 from breml/deps-expandenv
Add support for environment variable expansion in dependencies
2017-06-30 08:55:50 -07:00
Lucas Bremgartner
e2474969bd Add support for environment variable expansion in dependencies 2017-06-30 12:01:37 +02:00
Lucas Bremgartner
a4b355ffbd Add template functionality 2017-06-30 11:10:26 +02:00
98a2cf9849 add license file 2017-06-29 18:38:45 -07:00
Alexei Yatskov
87f1a4e15c minor fixups 2017-01-05 10:57:35 -08:00
Alexei Yatskov
4c98383b21 Merge branch 'tridentlead-master' 2017-01-05 10:41:59 -08:00
tridentlead
fc6740c07c
Adopt changes required by upstream maintainer
This commit switches indentation to tabs, rather than spaces, removes an
unnecessary conditional check and adopts the project naming convention.
It also updates the documentation to reflect the changes it creates.
2017-01-04 23:38:21 -05:00
tridentlead
66eb33b724
Added support for pre and post commands
Two new fields were added to the config. Precmds runs before cmds and
links. Postcmds runs after cmds and links. Cmds is no longer necessary
but was left in for compatibility.
2017-01-04 10:21:35 -05:00
6994b1781d Updating README.md 2016-09-06 21:16:13 -07:00
18bae8ddc6 Updating README.md 2016-09-06 21:13:45 -07:00
0d25cc654a Updating README.md 2016-07-11 20:52:46 -07:00
625d0cbac9 Updating README.md 2016-07-10 13:39:36 -07:00
1425900bb0 Updating README.md 2016-07-08 22:55:09 -07:00
abcf5dac66 Merge branch 'master' of https://github.com/FooSoft/homemaker 2016-07-02 21:38:42 -07:00
a4b57e26e6 Removing images 2016-07-02 21:38:30 -07:00