cryptomator / cryptomator/cli

Make the `--mounter` option optional. Use defaults (as with the desktop app) when it is not present

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
Java
Stars
427
Forks
52
Avg merge
20h 37m
Merged PRs (30d)
2

Description

### Please agree to the following

- [X] I have searched [existing issues](https://github.com/cryptomator/cli/issues?q=) for duplicates
- [X] I agree to follow this project's [Code of Conduct](https://github.com/cryptomator/cli/blob/develop/.github/CODE_OF_CONDUCT.md)

### Summary

I do not want to provide the `--mounter' option all the time. We should use the same strategy here as for the desktop application, provide defaults and if the user wants to use something else, use the value of that option.

### What software is involved?

- Operating System: Not relevant
- Cryptomator CLI: 0.6.0

### Volume Type

None

### Steps to Reproduce

1. `echo "foo" | cryptomator-cli unlock /home/foo/vault/ --mountPoint=/home/foo/mounted --password:stdin`

### Expected Behavior

Vault gets unlocked using the default mount provider

### Actual Behavior

`Error: Missing required argument(s): --mounter=fully.qualified.ClassName` is shown

### Reproducibility

Always

### Relevant Log Output

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.