lib/menu.yml in markdown_exec-1.7 vs lib/menu.yml in markdown_exec-1.8

- old
+ new

@@ -1,6 +1,6 @@ -# MDE - Markdown Executor (1.7) +# MDE - Markdown Executor (1.8) --- - :description: Show current configuration values :procname: show_config :short_name: '0' - :arg_name: BOOL @@ -75,10 +75,50 @@ - :default: "(document_options)" :description: Name of Opts block to load with the document :env_var: MDE_DOCUMENT_LOAD_OPTS_BLOCK_NAME :opt_name: document_load_opts_block_name :procname: val_as_str +- :arg_name: BOOL + :default: false + :description: Dump BlocksInFile (stage 1) + :env_var: MDE_DUMP_BLOCKS_IN_FILE + :opt_name: dump_blocks_in_file + :procname: val_as_bool +- :arg_name: BOOL + :default: false + :description: Dump MenuBlocks (stage 2) + :env_var: MDE_DUMP_MENU_BLOCKS + :opt_name: dump_menu_blocks + :procname: val_as_bool +- :arg_name: BOOL + :default: false + :description: Dump selected block + :env_var: MDE_DUMP_SELECTED_BLOCK + :opt_name: dump_selected_block + :procname: val_as_bool +- :default: fg_rgbh_E0_E0_20 + :description: Color of exception detail + :env_var: MDE_EXCEPTION_COLOR_DETAIL + :opt_name: exception_color_detail + :procname: val_as_str +- :default: " - %{detail}\n" + :description: Format for exception detail + :env_var: MDE_EXCEPTION_FORMAT_DETAIL + :opt_name: exception_format_detail + :procname: val_as_str +- :default: fg_rgbh_E0_20_20 + :description: Color of exception name + :env_var: MDE_EXCEPTION_COLOR_NAME + :opt_name: exception_color_name + :procname: val_as_str +- :default: |2- + + %{name} + :description: Format for exception name + :env_var: MDE_EXCEPTION_FORMAT_NAME + :opt_name: exception_format_name + :procname: val_as_str - :arg_name: REGEX :default: :description: Exclude blocks with name matching :env_var: MDE_EXCLUDE_BY_NAME_REGEX :opt_name: exclude_by_name_regex @@ -93,11 +133,11 @@ :default: true :description: Hide all blocks of type "expect" :env_var: MDE_EXCLUDE_EXPECT_BLOCKS :opt_name: exclude_expect_blocks :procname: val_as_bool -- :default: magenta +- :default: fg_rgbh_20_80_80 :description: execution_report_preview_frame_color :env_var: MDE_EXECUTION_REPORT_PREVIEW_FRAME_COLOR :opt_name: execution_report_preview_frame_color :procname: val_as_str - :default: |2- @@ -131,10 +171,16 @@ :env_var: MDE_FILENAME :long_name: filename :opt_name: filename :procname: val_as_str :short_name: f +- :arg_name: FIND + :default: '' + :description: Find in documents + :long_name: find + :procname: find + :short_name: "?" - :default: "^# *(?<name>[^#]*?) *$" :env_var: MDE_HEADING1_MATCH :opt_name: heading1_match :procname: val_as_str - :default: "^## *(?<name>[^#]*?) *$" @@ -163,10 +209,16 @@ :procname: val_as_str - :default: "&" :env_var: MDE_HISTORY_PROPERTY_SEPARATOR :opt_name: history_property_separator :procname: val_as_str +- :arg_name: HOW + :default: '' + :description: Find in YAML configuration options + :long_name: how + :procname: how + :short_name: "?" - :default: "^ *@import +(?<name>.+?) *$" :env_var: MDE_IMPORT_PATTERN :opt_name: import_pattern :procname: val_as_str - :description: List blocks @@ -216,11 +268,11 @@ :default: true :description: Display Back option at top of menu (vs bottom) :env_var: MDE_MENU_BACK_AT_TOP :opt_name: menu_back_at_top :procname: val_as_bool -- :default: plain +- :default: fg_rgbh_40_c0_f0 :description: Color of menu bash :env_var: MDE_MENU_BASH_COLOR :opt_name: menu_bash_color :procname: val_as_str - :arg_name: BOOL @@ -233,21 +285,21 @@ :default: false :description: Display headings (levels 1,2,3) in block selection menu :env_var: MDE_MENU_BLOCKS_WITH_HEADINGS :opt_name: menu_blocks_with_headings :procname: val_as_bool -- :default: fg_rgbh_aa_bb_aa +- :default: fg_rgbh_80_80_20 :description: Color of menu chrome :env_var: MDE_MENU_CHROME_COLOR :opt_name: menu_chrome_color :procname: val_as_str - :default: "%{line}" :description: format for menu chromes :env_var: MDE_MENU_CHROME_FORMAT :opt_name: menu_chrome_format :procname: val_as_str -- :default: magenta +- :default: fg_rgbh_20_98_80 :description: Color of menu divider :env_var: MDE_MENU_DIVIDER_COLOR :opt_name: menu_divider_color :procname: val_as_str - :default: "-:= %{line} =:-" @@ -298,21 +350,21 @@ :line: '' :description: opening demarcation for menu :env_var: MDE_MENU_INITIAL_DIVIDER :opt_name: menu_initial_divider :procname: val_as_str -- :default: red +- :default: fg_rgbh_20_E0_20 :description: Color of menu link :env_var: MDE_MENU_LINK_COLOR :opt_name: menu_link_color :procname: val_as_str - :default: "%{line}" :description: format for menu link :env_var: MDE_MENU_LINK_FORMAT :opt_name: menu_link_format :procname: val_as_str -- :default: fg_rgbh_88_88_88 +- :default: fg_rgbh_40_a0_a0 :description: Color of menu note :env_var: MDE_MENU_NOTE_COLOR :opt_name: menu_note_color :procname: val_as_str - :default: "%{line}" @@ -335,26 +387,26 @@ :line: "* Exit" :description: Text for Exit option :env_var: MDE_MENU_OPTION_EXIT_NAME :opt_name: menu_option_exit_name :procname: val_as_str -- :default: blue +- :default: fg_rgbh_E0_60_E0 :description: Color of menu opts :env_var: MDE_MENU_OPTS_COLOR :opt_name: menu_opts_color :procname: val_as_str -- :default: cyan +- :default: fg_rgbh_E0_20_20 :description: Color of menu opts :env_var: MDE_MENU_OPTS_SET_COLOR :opt_name: menu_opts_set_color :procname: val_as_str - :default: "%{key} = %{value}\n" :description: format for menu opts output :env_var: MDE_MENU_OPTS_SET_FORMAT :opt_name: menu_opts_set_format :procname: val_as_str -- :default: cyan +- :default: fg_rgbh_A0_20_D0 :description: Color of menu task :env_var: MDE_MENU_TASK_COLOR :opt_name: menu_task_color :procname: val_as_str - :default: "%{name} [%{status}]" @@ -370,16 +422,16 @@ - :default: ">" :description: Symbol before each task :env_var: MDE_MENU_TASK_SYMBOL :opt_name: menu_task_symbol :procname: val_as_str -- :default: blue +- :default: fg_rgbh_E0_80_20 :description: Color of menu vars :env_var: MDE_MENU_VARS_COLOR :opt_name: menu_vars_color :procname: val_as_str -- :default: cyan +- :default: fg_rgbh_E0_80_20 :description: Color of menu vars :env_var: MDE_MENU_VARS_SET_COLOR :opt_name: menu_vars_set_color :procname: val_as_str - :default: "%{key} = %{value}\n" @@ -415,16 +467,16 @@ - :default: "%{name}: %{value}" :description: format for menu dividers and demarcations :env_var: MDE_OUTPUT_EXECUTION_LABEL_FORMAT :opt_name: output_execution_label_format :procname: val_as_str -- :default: yellow +- :default: fg_rgbh_20_D8_80 :description: Color of output_execution_label_name :env_var: MDE_OUTPUT_EXECUTION_LABEL_NAME_COLOR :opt_name: output_execution_label_name_color :procname: val_as_str -- :default: plain +- :default: fg_rgbh_20_E0_80 :description: Color of output_execution_label_value :env_var: MDE_OUTPUT_EXECUTION_LABEL_VALUE_COLOR :opt_name: output_execution_label_value_color :procname: val_as_str - :arg_name: BOOL @@ -477,11 +529,11 @@ Process? :description: Prompt to approve a block :env_var: MDE_PROMPT_APPROVE_BLOCK :opt_name: prompt_approve_block :procname: val_as_str -- :default: cyan +- :default: fg_rgbh_20_E8_80 :description: Color of prompt after script execution :env_var: MDE_PROMPT_COLOR_AFTER_SCRIPT_EXECUTION :opt_name: prompt_color_after_script_execution :procname: val_as_str - :default: Exit @@ -536,10 +588,16 @@ :procname: val_as_bool - :description: Run most recently saved script :long_name: run-last-script :opt_name: run_last_script :procname: val_as_bool +- :default: 1 + :description: Runtime exception error level (warn if < 0, ignore if 0, abort if + > 0) + :env_var: MDE_RUNTIME_EXCEPTION_ERROR_LEVEL + :opt_name: runtime_exception_error_level + :procname: val_as_int - :arg_name: BOOL :default: false :description: Save executed script :env_var: MDE_SAVE_EXECUTED_SCRIPT :long_name: save-executed-script @@ -598,11 +656,11 @@ :default: mde_*.out.txt :description: Glob matching saved outputs :env_var: MDE_SAVED_STDOUT_GLOB :opt_name: saved_stdout_glob :procname: val_as_str -- :default: green +- :default: fg_rgbh_20_80_80 :description: script_execution_frame_color :env_var: MDE_SCRIPT_EXECUTION_FRAME_COLOR :opt_name: script_execution_frame_color :procname: val_as_str - :default: |2- @@ -615,11 +673,11 @@ - :default: " -v-\n" :description: script_execution_tail :env_var: MDE_SCRIPT_EXECUTION_TAIL :opt_name: script_execution_tail :procname: val_as_str -- :default: yellow +- :default: fg_rgbh_20_80_80 :description: Color of output divider :env_var: MDE_OUTPUT_DIVIDER_COLOR :opt_name: script_preview_frame_color :procname: val_as_str - :default: |2- @@ -667,10 +725,20 @@ - :default: bash :description: Shell for launched scripts :env_var: MDE_SHELL :opt_name: shell :procname: val_as_str +- :default: "# -^- +%{name} -^-" + :description: shell_code_label_format_above + :env_var: MDE_SHELL_CODE_LABEL_FORMAT_ABOVE + :opt_name: shell_code_label_format_above + :procname: val_as_str +- :default: "# -v- +%{name} -v-" + :description: shell_code_label_format_below + :env_var: MDE_SHELL_CODE_LABEL_FORMAT_BELOW + :opt_name: shell_code_label_format_below + :procname: val_as_str - :description: List tab completions :long_name: tab-completions :opt_name: tab_completions :procname: val_as_bool - :arg_name: BOOL @@ -683,10 +751,10 @@ :short_name: q - :description: Print the gem's version :long_name: version :procname: version :short_name: v -- :default: red +- :default: fg_rgbh_E0_E0_20 :description: Color of warning message :env_var: MDE_WARNING_COLOR :opt_name: warning_color :procname: val_as_str - :default: 'Error: %{error}'