ls, but with CIDs.
A cli command similar to ls, except with CIDs computed for each file name alongside the output. The current implementation is functional, but in an MVP state.
Quickly install this cli command by running
curl -fsSL https://raw.githubusercontent.com/orvn/cidls/main/install.sh | sudo bashThat's it! OS detection is automatic and the binary will be moved to an executable path. You'll likely be prompted for a password.
cidls [path] [CID version]
- Run the command like
cidls ~/some/path 0 - The path is optional, default path is the current working directory
- The second argument accepts
0for CID v0 or1for CID v1
cidls -vfor version informationcidls -hfor help
(more flags to come for setting multihash and multicodec)
- Clone this this repo
- Compile from source with
go build - Try it out by running
./cidlsfor the current directory or./cidls ~/some/pathto target any directory
- Compile and test on different OSs (currently only tested on macOS)
- Add to path to run as cli command
- Support different types of CIDs
- Create a caching system to avoid re-processing files too much
- Make compatible with BSD-style
LSCOLORSvariable (e.g.,exgxcxdxbxegedabagacad) - Add options for a few common ls flags