parent
bb99c5585b
commit
c4f9e3ea26
2 changed files with 13 additions and 1 deletions
|
@ -59,6 +59,9 @@ x -> y -> z
|
|||
- force-appendix
|
||||
- center
|
||||
- animated-interval
|
||||
- font-regular
|
||||
- font-italic
|
||||
- font-bold
|
||||
|
||||
# Limitation
|
||||
|
||||
|
|
11
wd2
11
wd2
|
@ -25,6 +25,9 @@ cli and overwrite cli parameters with the same name.
|
|||
- force-appendix
|
||||
- center
|
||||
- animated-interval
|
||||
- font-regular
|
||||
- font-italic
|
||||
- font-bold
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
|
@ -84,6 +87,9 @@ d2_port=$(get_attr_value "port")
|
|||
d2_force_appendix=$(get_attr_value "force-appendix")
|
||||
d2_center=$(get_attr_value "center")
|
||||
d2_animated_interval=$(get_attr_value "animated-interval")
|
||||
d2_font_regular=$(get_attr_value "font-regular")
|
||||
d2_font_italic=$(get_attr_value "font-italic")
|
||||
d2_font_bold=$(get_attr_value "font-bold")
|
||||
set -e
|
||||
|
||||
d2 "${d2_args[@]}" \
|
||||
|
@ -95,5 +101,8 @@ d2 "${d2_args[@]}" \
|
|||
${d2_port:+--port=${d2_port}} \
|
||||
${d2_force_appendix:+--force-appendix=${d2_force_appendix}}
|
||||
${d2_center:+--center=${d2_center}} \
|
||||
${d2_animated_interval:+--animated-interval=${d2_animated_interval}}
|
||||
${d2_animated_interval:+--animated-interval=${d2_animated_interval}} \
|
||||
${d2_font_regular:+--font-regular=${d2_font_regular}} \
|
||||
${d2_font_italic:+--font-italic=${d2_font_italic}} \
|
||||
${d2_font_bold:+--font-bold=${d2_font_bold}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue