Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global template support #20

Closed
wants to merge 4 commits into from
Closed

Add global template support #20

wants to merge 4 commits into from

Conversation

ostev
Copy link
Contributor

@ostev ostev commented Jul 11, 2021

Closes #16.

I introduced the home crate to deal with finding the user's home directory on Windows, which is surprisingly tricky. Win32 API usage is required, which I didn't want to mess with.

ostev and others added 4 commits July 10, 2021 17:03
This is used for `bonnie --init`. It fetches the file at `$BONNIE_TEMPLATE_PATH`, falling back to `~/.bonnie/template.toml` if necessary.  The `home` crate was introduced to handle the finding of the user's home directory on Windows, which is surprisingly complicated and **can fail**.
Using the `-e` or `--edit-template` flag, the user can now open the template file using the editor in the `EDITOR` environment variable or, on Windows, `start`.
@ostev ostev closed this Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global template support
1 participant