0.3.1 • Published 3 years ago

mcgregor v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

🧑‍🌾 A helpful digital gardening assistant for managing digital gardens in Hugo.

Install

$ yarn add mcgregor

Usage

  Description
    A helpful digital gardening assistant for managing digital gardens in Hugo.

  Usage
    $ mcgregor <command> [options]

  Available Commands
    tend    Mark who last tended a post.

  For more info, run any command with the `--help` flag
    $ mcgregor plant --help
    $ mcgregor tend --help

  Options
    -v, --version    Displays current version
    -h, --help       Displays this message

tend

Mark who last tended a post.

Applies the lastTended hash to the frontmatter of a post which includes the current date and who made the modification according to the git config of the changing user.

The resulting frontmatter will look like:

---
lastTended:
    by: Luke Skywalker
    when: 2021-08-31
---

Files should be passed to the tend script after all options have been passed:

$ mcgregor tend example.md packages/core/CHANGELOG.md

API