article-generator

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 6 Imported by: 0

README

스크린샷 2025-02-01 오후 9 14 43

article-generator

A CLI tool for generaing blog article templates.

Features

  • Interactive CLI Interface.
  • Generate markdown files with frontmatter.
  • Creates directory strucrture for image of blog article.

article-generator

Will create this file, which you can start with.

---
title: "Title"
description: "Something special"
tags: ["AI", "GO", "Blog"]
pubDate: "Feb 01 2025"
heroImage: "/blog/250201/thumbnail.webp"
---

Install

go install github.com/jahnen/article-generator@latest

How to use

  1. modify your package.json (recommend)
{
  "scripts": {
    "write": "go run github.com/jahnen/article-generator@latest",
    "astro": "astro",
    // ... other scripts ...
  }
}

then run the command in your blog directory

npm run write

or

  1. run the command in your blog directory:
go run github.com/jahnen/article-generator@latest

Acknowledgement

Documentation

Overview

Package article-generator is a CLI tool for generating blog article templates.

It provides an interactive terminal interface using the Bubble Tea framework to collect article metadata such as title, description, and tags. The tool then generates a markdown file with proper frontmatter and creates necessary directories for blog posts.

Features

  • Interactive CLI Interface
  • Generate markdown files with frontmatter
  • Creates directory structure for image of blog article

Installation

go install github.com/jahnen/article-generator@latest

Usage

1. Add to package.json (recommended):

{
  "scripts": {
    "write": "go run github.com/jahnen/article-generator@latest"
  }
}

Then run:

npm run write

2. Or run directly:

go run github.com/jahnen/article-generator@latest

Generated File Structure

The tool will generate a markdown file with this structure:

---
title: "Title"
description: "Something special"
tags: ["AI", "GO", "Blog"]
pubDate: "Feb 01 2025"
heroImage: "/blog/250201/thumbnail.webp"
---

Acknowledgements

Built with:

  • Bubble Tea Framework (github.com/charmbracelet/bubbletea)
  • Gopher image from gopherkon
  • Go and Go Mono fonts from go.googlesource.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL