dirsh
v1.0.1
Published
A module to track new files and create shorthand references.
Downloads
143
Maintainers
Readme
Directory Shorthand CLI
dirsh
is a CLI tool designed for Next.js to reduce the amount of writing when pushing updates to github. The tool creates a "DIRectory SHorthand" JSON file, tracking all project files and assigning a unique shorthand key to each. The keys can then be used to push updates to git in one command. The key associated with each file will appear as a comment at the top of the file. Initializing will catalog all existing files in the project as while as any files created while the tool is not initialized.
Features
- File Watcher: Automatically update a JSON file with shorthand keys and file paths whenever a new file is created.
- Git Integration: Commit and push files using shorthand keys. Use
.
for all files.
Installation
To install dirsh
from npm:
$ npm install dirsh
Usage
--to start monitoring newly created and deleted files
dirsh watch
--to commit changes in specific files to github
dirsh commit "Commit message"
--to commit all files
dirsh commit . "Commit message for all files"