Repository: PaddiM8/kalker (language: rust)

Issue:
Rename binary
`kalk` instead of `kalk_cli` would be much more convenient
Rename binary
`kalk` instead of `kalk_cli` would be much more convenient


Discussion / hints:
Yes, I agree! The problem is that the library is called kalk, and I haven't found a way to tell cargo what name the binary should have... Will have to look into it more. For now you could set up an alias (on Linux at least). `echo "alias kalk='kalk_cli'" >> ~/.bashrc`
Yes, I agree! The problem is that the library is called kalk, and I haven't found a way to tell cargo what name the binary should have... Will have to look into it more. For now you could set up an alias (on Linux at least). `echo "alias kalk='kalk_cli'" >> ~/.bashrc`

Fix patch:
diff --git a/kalk_cli/Cargo.toml b/kalk_cli/Cargo.toml
index 1f60b81..be92872 100644
--- a/kalk_cli/Cargo.toml
+++ b/kalk_cli/Cargo.toml
@@ -10,6 +10,10 @@ license = "MIT"
 keywords = ["math", "calculator", "cli", "command-line"]
 categories = ["mathematics", "command-line-utilities"]
 
+[[bin]]
+path = "src/main.rs"
+name = "kalk"
+
 [dependencies]
 kalk = { path = "../kalk", version = "^0.1.9" }
 rustyline = "6.1.2"


Test patch: