-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#73] Adds build.rs to generate a default config template with tool v…
…ersion (#78) Resolves #73 This adds a build script that generates the `src/config/template.rs` file. It is done this way because there is no access to version information after compile time. It uses the `CARGO_PKG_VERSION` environment variable made available for cargo after running the command `cargo build`. ### Additional tasks tasks following #73 --- - [x] Automatically embedding version. As discussed in this issue. - [x] Prefill all the tools supported by tool-sync. This requires converting the big match to a BTreeMap. - [x] Add comments around tool tables. To make sure that the code inside the comments stays up-to-date and is parsed by tool-sync itself. General tasks --- - [ ] Documentation for changes provided/changed - [x] Tests added Co-authored-by: Dmitrii Kovanikov <[email protected]>
- Loading branch information
1 parent
b4f0962
commit b79eeb9
Showing
7 changed files
with
183 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
mod archive; | ||
mod configure; | ||
mod db; | ||
pub mod db; | ||
mod download; | ||
mod install; | ||
mod prefetch; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This config file was generated for version 0.1.0 | ||
# | ||
# # tool-sync default configuration file | ||
# https://github.com/chshersh/tool-sync | ||
# This file was automatically generated by tool-sync | ||
##################################################### | ||
# | ||
# | ||
# store_directory = "$HOME/.local/bin" | ||
# | ||
# tool-sync provides native support for some of the tools without the need to configure them | ||
# Uncomment the tools you want to have them | ||
# | ||
# [bat] | ||
# [difftastic] | ||
# [exa] | ||
# [fd] | ||
# [ripgrep] | ||
# [tool-sync] | ||
# | ||
# To add configuration for other tools these are the config options: | ||
# [ripgrep] | ||
# owner = "BurntSushi" | ||
# repo = "ripgrep" | ||
# exe_name = "rg" | ||
# | ||
# # Uncomment to download a specific version or tag. | ||
# # Without this tag latest will be used | ||
# # tag = "13.0.0" | ||
# | ||
# | ||
# Asset name to download on linux OSes | ||
# asset_name.linux = "x86_64-unknown-linux-musl" | ||
# | ||
# uncomment if you want to install on macOS as well | ||
# asset_name.macos = "apple-darwin" | ||
# | ||
# uncomment if you want to install on Windows as well | ||
# asset_name.windows = "x86_64-pc-windows-msvc" |