diff --git a/Cargo.toml b/Cargo.toml index 7927234..527c672 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,16 @@ [package] name = "remux" -version = "0.1.2" +version = "0.1.3" edition = "2021" +authors = [ "Valerie Wolfe " ] +description = "A friendly command shortener for tmux" +repository = "https://git.vwolfe.io/valerie/remux" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] pico-args = { version = "0.5.0", features = [ "combined-flags", "eq-separator" ] } -#ratatui = { version = "0.20.1", features = [ "termion" ] } termion = "2.0.1" tmux_interface = "0.2.1" @@ -17,5 +20,5 @@ lto = true debug = false codegen-units = 1 panic = "abort" -strip = "debuginfo" +strip = "symbols" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f8bb458 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2024 Valerie Wolfe + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/error.rs b/src/error.rs index e51d68a..fb8eed6 100644 --- a/src/error.rs +++ b/src/error.rs @@ -11,12 +11,6 @@ pub fn no_target(target: String) { println!("remux: no session \"{target}\" exists"); exit(2); } -/// no sessions exist; code 2 -pub fn no_sessions() { - println!("remux: no sessions running"); - println!("use 'remux n ' to create a new session"); - exit(2); -} /// help topic doesn't exist; code 3 pub fn no_help(topic: String) { diff --git a/src/help.rs b/src/help.rs index b567bb4..cce27ef 100644 --- a/src/help.rs +++ b/src/help.rs @@ -1,4 +1,3 @@ -use std::process::exit; use pico_args::Arguments;