diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-07-29 21:54:30 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-07-29 21:54:30 +0200 |
| commit | b25f575e41f078be3e47d843fda1827881f23646 (patch) | |
| tree | caedf8553e1237e37260e1f970f417c2a64af089 /crates/cli/src/words.rs | |
| parent | e012aa80006a0de8135929243e1311958b791048 (diff) | |
| download | mihi-b25f575e41f078be3e47d843fda1827881f23646.tar.gz mihi-b25f575e41f078be3e47d843fda1827881f23646.zip | |
Add the exercises command
Subcommands have been added to it which are similar to the ones on words
on purpose.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates/cli/src/words.rs')
| -rw-r--r-- | crates/cli/src/words.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/cli/src/words.rs b/crates/cli/src/words.rs index 72748ae..7db84a2 100644 --- a/crates/cli/src/words.rs +++ b/crates/cli/src/words.rs @@ -166,7 +166,7 @@ fn trim_flags(given: String) -> String { for line in given.lines() { let trimmed = line.trim(); - if !line.trim().starts_with('#') { + if !trimmed.starts_with('#') { res.push_str(trimmed); } } @@ -510,7 +510,7 @@ fn edit(mut args: IntoIter<String>) -> i32 { } fn show(mut _args: IntoIter<String>) -> i32 { - 0 + todo!() } fn rm(mut args: IntoIter<String>) -> i32 { |
