-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Command line interface for name resolution and publishing #1307
Comments
i think this is close. some changes:
|
Pulling over some discussion from #1320: On Wed, Jun 03, 2015 at 12:12:25AM -0700, Juan Batiz-Benet wrote 1:
I'm fine putting 7 under a single command. I'm agnostic about whether we want separate commands for each I'm against having separate commands that handle groupings between the |
On Wed, Jun 03, 2015 at 01:30:08AM -0700, Juan Batiz-Benet wrote:
So I'm fine replacing ‘dht’ with whatever you want to use for “the
Then having a single IPFS command for resolving/publishing to that
That sounds like both the ‘ipfs publish …’ (per-protocol |
closing, we have |
Since #1208 (specifically, 416d454, core/commands: Make 'ipfs name resolve' IPNS-only, 2015-05-07), ‘ipfs name resolve …’ has been for DHT-links only. Use ‘ipfs resolve’ (added in the same commit) for “use all known name-system protocols and give me back an IPFS path”.
On Sat, May 30, 2015 at 01:25:51PM -0700, Juan Batiz-Benet wrote:
So what does our intended interface look like? As far as I can tell, it's:
ipfs name resolve [--recursive] [<name>]
to resolve (recursively) any name using all known protocols. Names should be fully qualified (e.g./ipns/QmSomeKey
or/ipns/example.com
)ipfs dns resolve [--recursive] <domain-name>
to resolve (recursively) name references using only DNS links. Names do not need a prefix (since the command restricts the protocol), so just useexample.com
.ipfs dht resolve [--recursive] <pk-hash>
to resolve (recursively) name references using only DHT IPNS entries. Names do not need a prefix (since the command restricts the protocol), so just useQmSomeKey
.And then publish with:
ipfs name publish [<name>] <target>
to publish a reference from<name>
to<target>
.I'm not sure how to handle the distinctions between the different protocols for publication. Without protocol-specific prefixes for names, should
ipfs name publish [<name>] <target>
be pushing a DHT entry? A DNS link? Until we do have protocol-specific namespacing, I think we probably want:ipfs dht publish [<name>] <target>
ipfs dns publish [<name>] <target>
ipfs name publish [--procotol <protocol>] [<name>] <target>
.etc. And then folks can start writing backends to push DNS links from the command line. Once we do get protocol-specific namespacing, we can drop the protocol-specific publishing commands and drop the
--protocol
option from the all-protocol publisher.The text was updated successfully, but these errors were encountered: