diff --git a/Cargo.lock b/Cargo.lock index fee1739..2b5a3a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -630,7 +630,7 @@ dependencies = [ [[package]] name = "sigi" -version = "3.6.4" +version = "3.7.0" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index 0ded61d..3da67b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sigi" -version = "3.6.4" -authors = ["J.R. Hill "] +version = "3.7.0" +authors = ["Justin \"Boonie Pepper\" Hill "] edition = "2021" license = "GPL-2.0-only" description = "An organizing tool for terminal lovers who hate organizing" diff --git a/README.md b/README.md index 7085957..918129c 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ organize your various stacks. --- -``` +```console $ sigi -h An organizing tool for terminal lovers who hate organizing @@ -28,6 +28,7 @@ Commands: count Print the total number of items in the stack [aliases: size, length] delete Move the current item to "_history" and mark as deleted [aliases: pop, remove, cancel, drop] delete-all Move all items to "_history" and mark as deleted [aliases: purge, pop-all, remove-all, cancel-all, drop-all] + edit Edit the content of an item. Other metadata like creation date is left unchanged head Print the first N items (default is 10) [aliases: top, first] is-empty Print "true" if stack has zero items, or print "false" (and exit with a nonzero exit code) if the stack does have items [aliases: empty] list Print all items [aliases: ls, snoop, all] @@ -49,8 +50,8 @@ Options: -v, --verbose Print more information, like when an item was created [aliases: noisy] -f, --format Use a programmatic format. Options include [csv, json, json-compact, tsv]. Not compatible with quiet/silent/verbose [possible values: csv, json, json-compact, tsv] -t, --stack Manage items in a specific stack [aliases: topic, about, namespace] - -h, --help Print help information (use `--help` for more detail) - -V, --version Print version information + -h, --help Print help (see more with '--help') + -V, --version Print version INTERACTIVE MODE: diff --git a/sigi.1 b/sigi.1 index 65920c4..6510182 100644 --- a/sigi.1 +++ b/sigi.1 @@ -1,4 +1,4 @@ -.TH sigi 1 "May 10, 2024" "version 3.6.4" "USER COMMANDS" +.TH sigi 1 "May 29, 2024" "version 3.7.0" "USER COMMANDS" .\" .SH NAME sigi \- An organizing tool for terminal lovers who hate organizing @@ -71,6 +71,9 @@ Move the current item to "_history" and mark as deleted. [aliases: pop, r delete-all Move all items to "_history" and mark as deleted [aliases: purge, pop-all, remove-all, cancel-all, drop-all] .TP +edit +Edit the content of an item. Other metadata like creation date is left unchanged +.TP head N Print the first N items [aliases: top, first] .TP diff --git a/tests/basic_sigi_tests.rs b/tests/basic_sigi_tests.rs index 969eb2f..bc49530 100644 --- a/tests/basic_sigi_tests.rs +++ b/tests/basic_sigi_tests.rs @@ -6,6 +6,6 @@ use run_sigi::sigi; fn sigi_version() { let res = sigi("_integ::version", &["--version"]); res.assert_success(); - res.assert_stdout_line_starts_with("sigi 3.6"); + res.assert_stdout_line_starts_with("sigi 3.7"); res.assert_stderr_empty(); } diff --git a/tests/interactive_tests.rs b/tests/interactive_tests.rs index 1be192b..c589e73 100644 --- a/tests/interactive_tests.rs +++ b/tests/interactive_tests.rs @@ -6,7 +6,7 @@ use run_sigi::{piping, sigi}; fn sigi_interactive_preamble() { let res = sigi("_integ::interactive", &["interactive"]); res.assert_success(); - res.assert_stdout_line_starts_with("sigi 3.6"); + res.assert_stdout_line_starts_with("sigi 3.7"); res.assert_stdout_line_starts_with(r#"Type "exit", "quit", or "q" to quit"#); res.assert_stdout_line_starts_with( r#"Type "?" for quick help, or "help" for a more verbose help message"#, @@ -17,7 +17,7 @@ fn sigi_interactive_preamble() { #[test] fn sigi_interactive_basic() { let res = piping(&["push hello world"]).into_sigi("_integ::interactive", &["interactive"]); - res.assert_stdout_line_starts_with("sigi 3.6"); + res.assert_stdout_line_starts_with("sigi 3.7"); res.assert_stdout_line_starts_with(r#"Type "exit", "quit", or "q" to quit"#); res.assert_stdout_line_starts_with( r#"Type "?" for quick help, or "help" for a more verbose help message"#, diff --git a/tests/run_sigi.rs b/tests/run_sigi.rs index 8243ae9..c1a7822 100644 --- a/tests/run_sigi.rs +++ b/tests/run_sigi.rs @@ -259,6 +259,6 @@ fn assert_stderr_empty() { fn sigi_piping_basic() { let res = piping(&[]).into_sigi("_integ::basic", &["interactive"]); assert_eq!(res.status, SigiStatus::Unknown); - res.assert_stdout_line_starts_with("sigi 3.6"); + res.assert_stdout_line_starts_with("sigi 3.7"); res.assert_stderr_empty(); }