markdown_exec 1.3.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +16 -109
- data/Gemfile.lock +1 -1
- data/Rakefile +26 -596
- data/bin/tab_completion.sh +7 -7
- data/lib/block_label.rb +82 -0
- data/lib/env_opts.rb +6 -6
- data/lib/environment_opt_parse.rb +3 -3
- data/lib/fcb.rb +133 -0
- data/lib/filter.rb +181 -0
- data/lib/markdown_block_manager.rb +195 -0
- data/lib/markdown_exec/version.rb +1 -1
- data/lib/markdown_exec.rb +78 -482
- data/lib/mdoc.rb +194 -0
- data/lib/menu.src.yml +448 -0
- data/lib/menu.yml +35 -9
- data/lib/menu_options.rb +0 -0
- data/lib/menu_options.yml +0 -0
- data/lib/object_present.rb +8 -8
- data/lib/option_value.rb +88 -0
- data/lib/regexp.rb +110 -0
- data/lib/saved_assets.rb +59 -0
- data/lib/saved_files_matcher.rb +61 -0
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12e843c3c261888f9afc6a1b0506b88284a9b6456e869d14c4c00e7127c2f794
|
4
|
+
data.tar.gz: 79e156848e1fabd2a2969600529d11a120f336215960490b171eef3e753ad70e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7efa23f775589262161d3f44785aeda4f39afbba8c433ea9834c12037c1bf6e22095a9811cb4ed9de04271ed6bf7454120015b80c3ab58404410530f3069021a
|
7
|
+
data.tar.gz: a4643bac46a7224b27402d84ef63d93899a1b5ea1b2d35c2b20095659b58c2832b7e9811f72680e9236fd820f52f7ed32d93e5b3015fe0d3dc49712e236b7954
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,120 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [
|
4
|
-
`reek lib/markdown_exec.rb --config .reek`
|
3
|
+
## [1.3.6] - 2023-10-15
|
5
4
|
|
6
|
-
|
7
|
-
- hidden w , w/o () in names
|
8
|
-
- fix regexp in pathnames
|
9
|
-
|
10
|
-
- tree display
|
11
|
-
|
12
|
-
- [ ] mde options, user prompt, in md file or included file
|
13
|
-
|
14
|
-
- [ ] include blocks from local md file
|
15
|
-
|
16
|
-
- execute? yes/no/save/clipboard + record/edit/history
|
17
|
-
|
18
|
-
- [ ] list, view saved output
|
19
|
-
|
20
|
-
- completion
|
21
|
-
- [ ] include blocks in md file
|
22
|
-
|
23
|
-
- [ ] ruby gem data model
|
24
|
-
|
25
|
-
- [ ] extract yaml block into stdout
|
26
|
-
- [ ] extract json block into stdout
|
27
|
-
|
28
|
-
- [ ] import yaml, json data into environment
|
29
|
-
|
30
|
-
- [ ] yq filter with imported or named yaml, json data
|
31
|
-
|
32
|
-
- [ ] yaml dump of options w/ detail
|
33
|
-
|
34
|
-
- [ ] re-exec last script v re-run named block in last script
|
35
|
-
- [ ] repeat to reload last doc and block
|
36
|
-
- [ ] option to log blended, timeline; stdin, stdout, stderr; labels: prefix and blocks
|
37
|
-
- [ ] ren logged_stdout_filename_prefix to saved_stdout_filename_prefix
|
38
|
-
- [ ] ignore '#' in fenced code blocks
|
39
|
-
|
40
|
-
- [ ] write named block, can be included
|
41
|
-
- [ ] file type per block type
|
42
|
-
- [ ] file name per block name or specified in quotes ("")
|
43
|
-
- [ ] overwrite-rules for writing blocks
|
44
|
-
- [ ] erase-rules for written blocks
|
45
|
-
- [ ] files to create named at top of script to execute; written prior to start of script
|
46
|
-
|
47
|
-
- [ ] tab completion example ascii demo
|
48
|
-
|
49
|
-
- [ ] parameters or (env vars) in menu
|
50
|
-
- [ ] config menu or read env vars
|
51
|
-
- [ ] enable/disable script, output saving per file
|
52
|
-
- [ ] keep values between runs so same env vars are not prompted
|
53
|
-
|
54
|
-
- [ ] option to list full menu
|
55
|
-
|
56
|
-
- [ ] task confirmation block option or bash template, env names
|
57
|
-
|
58
|
-
- [ ] configuration block `mde_config` anywhere in file
|
59
|
-
- [ ] configuration block `mde_config` anywhere in folder config file
|
60
|
-
```yaml :(mde_config)```
|
61
|
-
- [x] fix execution stdin, stdout to allow for ask function
|
62
|
-
- [ ] fix execution stdin, stdout to allow for tty-prompt
|
63
|
-
- [ ] accept stdin as filename `-`
|
64
|
-
- [ ] fix
|
65
|
-
$ bin/mde
|
66
|
-
Choose a file: * Exit
|
67
|
-
No blocks found.
|
68
|
-
Choose a block: * Exit
|
69
|
-
|
70
|
-
- [ ] accept `!` shell execute command at prompt
|
71
|
-
- [ ] menu response: re-exec last saved script (like mde --select-recent-script)
|
72
|
-
|
73
|
-
- [ ] process shebang in markdown
|
74
|
-
- [ ] ignore shebang in markdown in rest of processing
|
75
|
-
- [! ] search for document in path
|
76
|
-
- [! ] search for document in custom path
|
77
|
-
- [ ] doc use of `#!/usr/bin/env mde`
|
78
|
-
- [ ] command to export each command to file, menu for list
|
79
|
-
|
80
|
-
- [ ] option blocks to exclude by shell
|
81
|
-
|
82
|
-
- #+BEGIN_SRC sh :results silent
|
83
|
-
#+END_SRC
|
84
|
-
|
85
|
-
- [ ] requires extra CRs after ctrl-C of earlier script?
|
86
|
-
|
87
|
-
- [! ] silent for `mde file block -q 0`
|
88
|
-
- [! ] define for block: env var name, prompt if missing, default value
|
89
|
-
- [! ] display env vars in menu
|
90
|
-
- [! ] mde md -- --arg1 --arg2
|
5
|
+
### Added
|
91
6
|
|
92
|
-
-
|
93
|
-
|
7
|
+
- Option to inhibit display of menu decorations/chrome
|
8
|
+
- Options for tasks
|
94
9
|
|
95
|
-
|
96
|
-
def self.fcb_select?(options, fcb)
|
97
|
-
used for selecting for 1) menu, 2) script composition, 3) list?
|
98
|
-
layers 1) block name in cli, 2) required blocks, 3) hidden, 4) selected, 5) excluded, 6) also per shell name
|
99
|
-
- [ ] opt to add block name as comment in bash script
|
100
|
-
- [ ] marker in file separating VARS from CODE in bash script
|
101
|
-
[ ] VARS, CODE section separately sourceable/executable
|
102
|
-
- [ ] config to hide unnamed bash blocks
|
103
|
-
- [ ] default to No after Save of script
|
10
|
+
## [1.3.5] - 2023-10-05
|
104
11
|
|
105
|
-
|
12
|
+
### Changed
|
106
13
|
|
107
|
-
-
|
14
|
+
- Fix display of menu dividers
|
108
15
|
|
109
16
|
## [1.3.3] - 2023-10-03
|
110
17
|
|
111
18
|
### Added
|
112
19
|
|
113
|
-
- Nest scripts by using an `import` directive
|
20
|
+
- Nest scripts by using an `import` directive
|
114
21
|
|
115
22
|
### Changed
|
116
23
|
|
117
|
-
- Convert constants for block selection into options
|
24
|
+
- Convert constants for block selection into options
|
118
25
|
|
119
26
|
## [1.3.2] - 2022-11-12
|
120
27
|
|
@@ -148,8 +55,8 @@
|
|
148
55
|
eg `export fruit_summary=$(yq e '[.fruit.name,.fruit.price]' fruit.yml)`
|
149
56
|
for invocation `%(summarize_fruits <fruit.yml >fruit_summary)`
|
150
57
|
and transformation `[.fruit.name,.fruit.price]`
|
151
|
-
- Option to extract document text and display it as disabled items in-line with the blocks in the selection menu
|
152
|
-
Add options for constants used in parsing
|
58
|
+
- Option to extract document text and display it as disabled items in-line with the blocks in the selection menu
|
59
|
+
Add options for constants used in parsing
|
153
60
|
- [x] yaml processing
|
154
61
|
- ```yaml :(make_fruit_file) >fruit.yml```
|
155
62
|
write to: fruit.yml
|
@@ -164,7 +71,7 @@
|
|
164
71
|
### Changed
|
165
72
|
|
166
73
|
- Refactoring
|
167
|
-
- Run-time menu in YAML file
|
74
|
+
- Run-time menu in YAML file
|
168
75
|
- Tap module initialization
|
169
76
|
|
170
77
|
## [1.2.0] - 2022-06-11
|
@@ -174,8 +81,8 @@
|
|
174
81
|
- Options
|
175
82
|
- Display document name in block selection menu
|
176
83
|
- Display headings (levels 1,2,3) in block selection menu
|
177
|
-
- Trap Ctrl-C (SIGTERM) while script is executing
|
178
|
-
Completes MDE processes such as saving output and reporting results
|
84
|
+
- Trap Ctrl-C (SIGTERM) while script is executing
|
85
|
+
Completes MDE processes such as saving output and reporting results
|
179
86
|
|
180
87
|
### Changed
|
181
88
|
|
@@ -185,11 +92,11 @@
|
|
185
92
|
|
186
93
|
### Added
|
187
94
|
|
188
|
-
- Post-install instructions to add tab completions permanently to the shell
|
95
|
+
- Post-install instructions to add tab completions permanently to the shell
|
189
96
|
|
190
97
|
### Changed
|
191
98
|
|
192
|
-
- Improve handling of threads ending while executing scripts
|
99
|
+
- Improve handling of threads ending while executing scripts
|
193
100
|
|
194
101
|
## [1.1.0] - 2022-05-21
|
195
102
|
|