From 10d9fcc9feb3b9c1f8c6f660818bb3b2618a504c Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Tue, 4 Mar 2025 21:04:29 -0500 Subject: [PATCH] docs: update the missing commands help --- docs/command.md | 6 +++++- src/ui/test.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/command.md b/docs/command.md index a8a5058..0f49d23 100644 --- a/docs/command.md +++ b/docs/command.md @@ -8,10 +8,14 @@ The currently supported commands are: * `write [path]` save the current spreadsheet. If the path is provided it will save it to that path. If omitted it will save to the path you are currently editing. `w` is a shorthand alias for this command. * `insert-rows [number]` Inserts a row into the sheet at your current row. If the number is provided then inserts that many rows. If omitted then just inserts one. * `insert-cols [number]` Just line `insert-rows` but for columns. +* `color-rows [count] ` color rows. The count of rows if given specifies how many rows going down to color. +* `color-cols [count] ` color columns. The count of rows if given specifies how many columns going right to color. +* `color-cell ` Color the currently selected cells. * `rename-sheet [idx] ` rename a sheet. If the idx is provide then renames that sheet. If omitted then it renames the current sheet. * `new-sheet [name]` Creates a new sheet. If the name is provided then uses that. If omitted then uses a default sheet name. * `select-sheet ` Select a sheet by name. -* `edit ` Edit a new spreadsheet at the current path. `e` is a shorthand alias for this command. +* `edit ` Edit a new spreadsheet at the current path. `e` is a shorthand alias for this command. +* `help [topic]` Display help for a given topic. * `export-csv ` Export the current sheet to a csv file at ``. * `quit` Quits the application. `q` is a shorthand alias for this command. diff --git a/src/ui/test.rs b/src/ui/test.rs index a00f3b1..d75bf28 100644 --- a/src/ui/test.rs +++ b/src/ui/test.rs @@ -225,7 +225,7 @@ fn test_cmd_export() { let output = result.unwrap(); assert!(output.is_some()); let cmd = output.unwrap(); - assert_eq!(cmd, Cmd::Export("test.csv")); + assert_eq!(cmd, Cmd::ExportCsv("test.csv")); } #[test]