1.0.1 • Published 9 months ago

dirsh v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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"

1.0.1

9 months ago

1.0.0

9 months ago