0.0.3 • Published 4 years ago

magic-sauce v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

:spaghetti: Magic sauce

A collection of useful command line developer tools

:sparkles: Features

:cat: Git

ms pr [message]

Automatically create a PR on the command line

Notes:

  • If your branch name ends with -[0-9] (e.g. branch-123), it will add closes #123 in the PR description

  • If no message is given, the branch name will be used instead

  • Only :octocat: GitHub is supported. Requires credentials. Run hub browse to be prompted for them.


ms clean

Prune and delete local branches that have been deleted in the remote repo

Notes:

  • Will not delete local branches that have never been pushed

ms branch

Create a new branch from the main branch

Notes:

  • Avoids accidentally branching out from a non-main branch

  • Fetches and rebases the main branch before branching out


ms rebase

Pull the main branch and rebase your current branch on main

Notes:

  • Easily keeps your branch up to date

:cat: Misc

ms ip

Display your local IP address

Notes

  • Only works on MacOS


:spaghetti: Magic sauce

ms --version

Display Magic sauce version

Running ms without an argument displays all options


Requirements

node


:computer: Install

The recommended way to install is to either add it as a dependency to your project, or use npx.

Add as dependency to a JavaScript project

yarn add --dev magic-sauce

or

npm install --save-dev magic-sauce

npx

npx magic-sauce [script name]