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

Make sure readme is up to date #15

Merged
merged 1 commit into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Duckup

Just install the latest version of duckdb in my `~/.local/bin`. Designed for linux, since duckdb CLI can't yet be installed via a linux package manager.
Since duckdb CLI can't yet be installed via a linux package manager, this will install the latest version of the duckdb CLI on your computer. Default location is `~/.local/bin/`, but you can choose your own location with the `--folder_path` option.

Currently very dangerous: it just sticks it in `~/.local/bin/duckdb`, overwriting anything that might have been there. Use with great caution.
Use with caution, it will overwrite an existing binary.

## Goals

It would be nice to eventually make this tool work like the wonderful [`rustup`](https://github.com/rust-lang/rustup) and [`juliaup`](https://github.com/JuliaLang/juliaup) tools. However, there is a very long way to go to reach that.

## Use
1. Have the [rust toolchain](https://www.rust-lang.org/tools/install) installed
1. Run `cargo install duckup`
1. Run `duckup` for help message
1. Run `duckup update` to install the latest version of the duckdb CLI into `~/.local/bin`
1. Run `duckup update` to install the latest version of the duckdb CLI into `~/.local/bin`. Run `duckup update --folder_path /path/to/desired/location/` to install to a location of your choice.
7 changes: 0 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,6 @@ fn update(dest_folder: &Path) -> Result<()> {
perms.set_mode(0o755);
std::fs::set_permissions(&executable_file, perms).context("failed to set permissions")?;
println!("Successfully set permissions");
// std::process::Command::new("chmod")
// .args([
// "+x",
// dest_folder.to_str().expect("Failed to convert to &str"),
// ])
// .status()
// .expect("Unable to set permissions");

Ok(())
}
Expand Down
Loading