Browse Source

Remove ll alias for list/ls

David Peter 2 years ago
parent
commit
fc6981cdb6
4 changed files with 4 additions and 4 deletions
  1. 1 1
      book/src/cli-usage.md
  2. 1 1
      book/src/web-usage.md
  3. 1 1
      numbat-cli/src/main.rs
  4. 1 1
      numbat-wasm/www/index.js

+ 1 - 1
book/src/cli-usage.md

@@ -35,7 +35,7 @@ There is a set of special commands that only work in interactive mode:
 
 | Command | Action |
 |---------|--------|
-| `list`, `ll`, `ls` | List all constants, units, and dimensions |
+| `list`, `ls` | List all constants, units, and dimensions |
 | `clear` | Clear screen |
 | `help`, `?` | View short help text |
 | `quit`, `exit` | Quit the session |

+ 1 - 1
book/src/web-usage.md

@@ -24,7 +24,7 @@ There is a set of special commands that only work in the web version:
 
 | Command | Action |
 |---------|--------|
-| `list`, `ll`, `ls` | List all constants, units, and dimensions |
+| `list`, `ls` | List all constants, units, and dimensions |
 | `help`, `?` | View short help text |
 | `reset` | Reset state (clear constants, functions, units, …) |
 | `clear` | Clear screen |

+ 1 - 1
numbat-cli/src/main.rs

@@ -309,7 +309,7 @@ impl Cli {
                         rl.add_history_entry(&line)?;
 
                         match line.trim() {
-                            "list" | "ls" | "ll" => {
+                            "list" | "ls" => {
                                 let ctx = self.context.lock().unwrap();
 
                                 let markup = ctx.print_environment();

+ 1 - 1
numbat-wasm/www/index.js

@@ -51,7 +51,7 @@ function interpret(input) {
     combined_input = "";
     updateUrlQuery(null);
     this.clear();
-  } else if (input_trimmed == "list" || input_trimmed == "ll" || input_trimmed == "ls") {
+  } else if (input_trimmed == "list" || input_trimmed == "ls") {
     output = numbat.print_environment();
   } else if (input_trimmed == "help" || input_trimmed == "?") {
     output = numbat.help();