-
Notifications
You must be signed in to change notification settings - Fork 15
Comments
Conclusion from the meeting: we have a |
I realized that |
I figured other projects have a similar ambiguity for
Not an ideal way to handle the ambiguity... Ah, I found an issue for Wouldn't be a bad idea to follow
If I run
and if I run |
Note that this is only for the version of the CLI tool, not the version of anything else like |
The convention from |
It turns out clap does this by default without having to implement anything, so definitely going with that. :) |
One drawback of the default implementation is that you get this answer:
and not |
We should either rename the crate to |
Weighing in with my product hat on, the crate and the binary should both be called |
ok, we've made a decision on the crate organization & CLI binary name. See #153. All that's left is to merge the actual version flag |
The version flag should work automagically once we do the renaming. |
Have an
iroh version
command that does something sensible.Currently it reports the version of the
iroh-ctl
crate. It makes sense that we report on this somewhere given that it can be useful information debugging, but it's not quite whatipfs version
seems to do.ipfs version
shows the version of the kubo release itself. We could show the version of the iroh release. Should we base this off some Rust crate? Which one?ipfs version
also can be given a flag to get the commit hash, though in my case it just displays the release version, not a commit hash.ipfs version
also can be given a flag to get the repo version. What is a "repo version" and do we want that?It supports an
all
option which does this:It reveals a system version and golang version too.
Then there's a
deps
subcommand which shows all the go dependencies, which I suggest we definitely not implement in Iroh.A difference we have is that we have
iroh cloud
andiroh one
and may want to see this too.Then there's some overlap with
iroh id
, which also reports on version information:Is there really a need for a top-level version command? Would it make sense to roll all of this into a
ipfs id
command instead?The text was updated successfully, but these errors were encountered: