removed dead code and updated package information

This commit is contained in:
Valerie Wolfe 2024-02-12 14:06:54 -05:00
parent a81226c79c
commit fab7dec810
4 changed files with 25 additions and 10 deletions

View file

@ -1,13 +1,16 @@
[package] [package]
name = "remux" name = "remux"
version = "0.1.2" version = "0.1.3"
edition = "2021" edition = "2021"
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
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 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
pico-args = { version = "0.5.0", features = [ "combined-flags", "eq-separator" ] } pico-args = { version = "0.5.0", features = [ "combined-flags", "eq-separator" ] }
#ratatui = { version = "0.20.1", features = [ "termion" ] }
termion = "2.0.1" termion = "2.0.1"
tmux_interface = "0.2.1" tmux_interface = "0.2.1"
@ -17,5 +20,5 @@ lto = true
debug = false debug = false
codegen-units = 1 codegen-units = 1
panic = "abort" panic = "abort"
strip = "debuginfo" strip = "symbols"

19
LICENSE Normal file
View file

@ -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.

View file

@ -11,12 +11,6 @@ pub fn no_target(target: String) {
println!("remux: no session \"{target}\" exists"); println!("remux: no session \"{target}\" exists");
exit(2); exit(2);
} }
/// no sessions exist; code 2
pub fn no_sessions() {
println!("remux: no sessions running");
println!("use 'remux n <title>' to create a new session");
exit(2);
}
/// help topic doesn't exist; code 3 /// help topic doesn't exist; code 3
pub fn no_help(topic: String) { pub fn no_help(topic: String) {

View file

@ -1,4 +1,3 @@
use std::process::exit;
use pico_args::Arguments; use pico_args::Arguments;