cli icon indicating copy to clipboard operation
cli copied to clipboard

Feature Request: Mount Hook

Open ijoseph opened this issue 5 years ago • 0 comments

It would be nice if this would take a mount hook function so that I could start the server and mount it with one command.

Desired Workflow


mount_f(){
    osascript -e 'mount volume "http://localhost:8080/demoVault/"'
}

export -f mount_f
java -jar cryptomator-cli.jar \
    --bind localhost \
    --port 8080 \
    --vault mySecretVault=/path/to/vault \
    --password mySecretVault=FooBar3000 \
    --mount_hook mount_f

Current Workflow

Terminal 1

java -jar cryptomator-cli.jar \
    --bind localhost \
    --port 8080 \
    --vault mySecretVault=/path/to/vault \
     --password mySecretVault=FooBar3000

Terminal 2

osascript -e 'mount volume "http://localhost:8080/mySecretVault/"' 

ijoseph avatar Sep 08 '20 04:09 ijoseph