https://github.com/osukaa/gardener
CLI tool for managing my digital garden
https://github.com/osukaa/gardener
Last synced: over 1 year ago
JSON representation
CLI tool for managing my digital garden
- Host: GitHub
- URL: https://github.com/osukaa/gardener
- Owner: osukaa
- License: mit
- Created: 2021-06-13T01:52:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-13T03:30:10.000Z (about 5 years ago)
- Last Synced: 2025-02-07T11:52:42.979Z (over 1 year ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gardener
> CLI tool for managing my digital garden
I created this tool because I already had a bunch of files in my obsidian vault, and in a different Gatsby site that I was trying to unify, and needed to setup the front matter in a standard way.
In essence this is a tool to manipulate files, or at least I'm trying to, because I generally use 3 types of files, `.md`, `.mdx`, `.apib`.
_**Disclaimer:** This is tool is tailored to how I handle my markdown files._
## Commands
### Edit
The edit command will allow you to add values to the front matter of a set of markdown files.
If you negate a value, it will assume intent to delete that property.
It will be greedy by default, meaning that it will recursively find all markdown files in the current working directory.
The default extension it will look for is `.md`, you can add more extensions via `--extensions`.
```bash
$ gardener edit --frontmatter.tags weekly, topic
$ gardener edit --folders 'weekly/**' --frontmatter.tags weekly, topic
$ gardener edit --extensions mdx, apib
```