Skip to content
Snippets Groups Projects
Select Git revision
  • c78e51cf07421405467efd8666d69f1eb6e92168
  • mui5-annotation-on-video-stable default
  • get_setter_canvasSizeInformations
  • fix-error-div-into-p
  • annotation-on-video-v2
  • detached
  • annotation-on-video-r17
  • mui5
  • mui5-react-18
  • jacob-test
  • annotation-on-video protected
  • master
  • test-antoinev1
  • 20-fetch-thumbnail-on-annotation
  • add-research-field
  • Save
  • add-plugin
  • 14-wip-no-seek-to
  • 14-bug-on-video-time-control
  • 9_wip_videotests
  • _upgrade_material_ui
  • latest-tetras-16
  • v3.3.0
  • v3.2.0
  • v3.1.1
  • v3.1.0
  • v3.0.0
  • v3.0.0-rc.7
  • v3.0.0-rc.6
  • v3.0.0-rc.5
  • v3.0.0-rc.4
  • v3.0.0-rc.3
  • v3.0.0-rc.2
  • v3.0.0-rc.1
  • v3.0.0-beta.10
  • v3.0.0-beta.9
  • v3.0.0-beta.8
  • v3.0.0-beta.7
  • v3.0.0-beta.6
  • v3.0.0-beta.5
  • v3.0.0-beta.3
41 results

WorkspaceAdd.js

Blame
  • entrypoint.sh 1.17 KiB
    #!/bin/bash
    
    usage() {
        prefix="docker run --rm -it -v \$PWD:/data docker-compose-viz-mermaid"
        echo "Usage $0 [options]"
        echo -e "\t-h display this help and exit"
        echo -e "\t-v '<options>' passes some options to docker-compose-viz-mermaid"
        echo -e "\t-m pipes docker-compose-viz-mermaid outputs to mermaid"
        echo -e "\t-M '<options>' passes some options to mermaid"
        echo "Exemples"
        echo -e "\t$prefix -M -otest.png -M -w1000"
        echo -e "\t$prefix -v -p -m"
        echo -e "\t$prefix -v -p -v -fMARKDOWN"
    }
    cmd="java -jar /opt/docker-compose-viz-mermaid.jar"
    mmdc="/home/mermaidcli/node_modules/.bin/mmdc -p /puppeteer-config.json"
    pipe=false
    
    while getopts ":hmv:M:" opt; do
        case $opt in
            h)
                usage
                exit
                ;;
            v)
                opts="$opts $OPTARG"
                ;;
            m)
                pipe=true
                ;;
            M)
                pipe=true
                mmdc_opts="$mmdc_opts $OPTARG"
                ;;
            \?)
                echo "Invalid option : -$OPTARG" >&2
                usage
                exit 1
                ;;
        esac
    done
    shift $((OPTIND-1))
    
    if $pipe; then
        $cmd $opts | $mmdc $mmdc_opts
    else
        $cmd $opts
    fi