Skip to content

Use $EDITOR to define campaign name/desc if not given

Warren Gifford requested to merge create-campaign-editor into master

Created by: mrnugget

This opens a template markdown file in $EDITOR if either no -name or no -desc are given on the command line.

This is heavily inspired by the implementation of GitHub's hub issue create, except that it's probably 1/4 of the code.

I also took the little regex from it, to determine whether $EDITOR is a Vim and if so set the filetype to Markdown :)

Merge request reports

Loading