Create `ipfs repo ls` alias for `ipfs refs local`
Checklist
- [X] My issue is specific & actionable.
- [X] I am not suggesting a protocol enhancement.
- [X] I have searched on the issue tracker for my issue.
Description
Users wanting to list all objects in their repo need to run ipfs refs local, however, most users look under ipfs repo because of it's name; ipfs refs isn't intuitively located. Additionally, ipfs refs only has one subcommand which doesn't feel necessary.
So, I've opened this issue to discuss. I propose ipfs repo refs, with ipfs refs local becoming ipfs repo refs -l/--local.
I am not in favor of moving all of ipfs refs, just ipfs refs local => ipfs repo ls.
That could work as well, an alias would be a lot easier than removing ipfs refs (and it would be more backwards compatible as well)
After looking at ipfs refs's functionality closer, moving the whole thing under ipfs repo would make no sense. I think Jorropo's idea is the best moving forward
2022-08-26 triage conversation: add an alias from ipfs repo ls → ipfs refs local.
@Winterhuman : do you want to take this one?
@BigLep I wouldn't have a clue unfortunately
@BigLep I'm giving it a try. I'll ping you for review of my pr.
@BigLep @Jorropo https://github.com/ipfs/kubo/pull/9320 Do you think this is good enough for the alias? Or am I breaking any code rules?
Thank you
https://github.com/ipfs/kubo/pull/9320 is now merged, closing issue. Thanks @susarlanikhilesh!