Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new commands format #3

Open
wants to merge 3 commits into
base: fs
Choose a base branch
from
Open

new commands format #3

wants to merge 3 commits into from

Conversation

djdv
Copy link
Owner

@djdv djdv commented Nov 23, 2020

Continuation on #2

This patch is mainly just a separation point between the old cmdslib (command line+API) parameter format and a proposed new one.

ipfs mount does the same as is (mounting paths set in the config)
But takes variable arguments instead of flags now:
ipfs mount /fuse/ipfs/path/mnt/ipfs /fuse/ipns/path/mnt/ipns ...

ipfs daemon --mount does the same as above, but requires vector flags instead of arguments.
ipfs daemon --mount-path=/fuse/ipfs/path/mnt/ipfs --mount-path=/fuse/ipns/path/mnt/ipns

In both instances, if the request comes from a terminal, it will render the text accordingly:
table example

We retain the existing mount implementation for now, but are preparing to swap the node's instance manager (ipfs.Mounts) with a new one that will handle requests of these format.
Along with a new Fuse backend that fulfills these requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant