Package Exports
- dat-shell
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dat-shell) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dat-shell
Dat shell. Open a remote dat and explore with cd, ls, etc.
dat-shell is part of the dat Peer-to-Peer universe. It's useful to explore remote dats by their key without having to download them. Think of it as bash for dats, letting you cd, ls and cp at will.
Install
$ npm install --global dat-shellRequirements
You'll need node 8.9.1 (LTS) or above. I suggest using n-install to install the n node version manager.
You'll probably need git too since we're using my (temporary) fork of glob to support hyperdrives (dat archives), and that fork is only available on github and not (yet) on npm.
Usage
$ dat-shell <dat-key> # dat-key is optionnalUpgrading
The cli now uses update-notifier to let the user know about updates to this program.
Users have the ability to opt-out of the update notifier by changing the optOut property to true in ~/.config/configstore/update-notifier-dat-shell.json. The path is available in notifier.config.path.
Users can also opt-out by setting the environment variable NO_UPDATE_NOTIFIER with any value or by using the --no-update-notifier flag on a per run basis.
To upgrade, simply
$ npm install --global dat-shellTODO
There's lots to do, classified here in bugs and features.
Bugs
- Add custom command completion
- Improve ls handling (arguments, long version, etc.)
- Improve args quoting (à la bash)
- Improve error messages
Features
- Add cp command
- Add cat command
- Add more command
- Add tail command
- Add tree command
- Improve help, add long command descriptions
- Colors
- Make all commands async (promises)
- Improve user responses
- Make prompt configurable (à la bash)
- Unit tests, travis, coveralls
- Gemnasium batch
- Enable usage as: dat-shell KEY ls (non-interactive)
- Support plugins
- Add debugging options and output
- Evaluate shelljs for integration
- Evaluate cash for integration
- Evaluate vorpal for integration
License
AGPL-v3 © 2017 Robin Millette