README.md in markdown_exec-1.2.0 vs README.md in markdown_exec-1.3.0
- old
+ new
@@ -47,11 +47,11 @@
### Basic
#### `mde`
-Process `README.md` file in the current folder. Displays all the blocks in the file and allows you to select using [up], [down], and [return]. Press [ctrl]-c to abort selection.
+Process `README.md` file in the current folder. Displays all the blocks in the file and allows you to select using [up], [down], and [return].
#### `mde my.md` or `mde -f my.md`
Select a block to execute from `my.md`.
@@ -157,11 +157,11 @@
```
### Behavior
Press tab for completions appropriate to the current input.
-`mde <...> <prior word> <current word>`
+`mde <...> <prior word> <current word><TAB>`
Completions are calculated based on the current word and the prior word.
1. If the current word starts with `-`, present matching options, eg `--version` for the current word `--v`.
2. Else, if the current word is empty and the prior word is an option that takes an argument, present the type of the argument, eg `.BOOL.` for the option `--user-must-approve`.
3. Else, if the current word is the type of argument, from the rule above, present the default value for the option. e.g. `1` for the type `.BOOL.` for the option `--user-must-approve`.
@@ -169,11 +169,11 @@
### Example Completions
In the table below, tab is indicated by `!`
| Input | Completions |
-| :---: | :---: |
+| :--- | :--- |
| `mde !` | local files and folders |
| `mde -!` | all options |
| `mde --!` | all options |
| `mde --v!` | `mde --version` |
| `mde --user-must-approve !` | `mde --user-must-approve .BOOL.`|
@@ -211,6 +211,27 @@
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
# Code of Conduct
-Everyone interacting in the MarkdownExec project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/markdown_exec/blob/master/CODE_OF_CONDUCT.md).
+Everyone interacting in the MarkdownExec project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fareedst/markdown_exec/blob/master/CODE_OF_CONDUCT.md).
+
+
+``` :test_vars +(echo_vars)
+vars1=$(
+ echo '1'
+ whoami
+ echo '2'
+ pwd
+ echo '3'
+ stat README.md
+ echo '4'
+ /bin/ls
+ echo '5'
+ whoami
+ echo '6'
+)
+```
+
+``` :(echo_vars)
+echo "vars1: ${vars1:-missing}"
+```