rubennorte / edit-cli

NPM package with a CLI to open the default text editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

edit-cli

CLI program to open the default text editor of the user.

Installation

npm install edit-cli

Usage

edit <file>

Example:

edit CHANGELOG.md

Motivation

This CLI program is useful to enforce users to edit certain files in npm lifecycle hooks. For example, you may want to automatically edit the CHANGELOG.md file when a new version is created:

package.json:

{
  "scripts": {
    "version": "edit CHANGELOG.md"
  },
  "devDependencies": {
    "edit-cli": "..."
  }
}

About

NPM package with a CLI to open the default text editor


Languages

Language:Shell 100.0%