An open API service indexing awesome lists of open source software.

https://github.com/renddslow/mcgregor


https://github.com/renddslow/mcgregor

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        


Farmer McGregor

McGregor



version


downloads


install size

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


## Install

```
$ yarn add mcgregor
```

## Usage

```shell

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

Usage
$ mcgregor [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:

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

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

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

## API