genpost

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

genpost

genpost 是markdown文件生成器

安装方法

git clone https://github.com/hidevopsio/genpost
cd genpost
go install

生成文章类别

在项目文件夹下面运行 genpost -c 按照提示输入文章类别的目录和标题即可


genpost -c

✔ 目录: articles
✔ 标题: 分享文章
✔ 排序: 1

生成文章

在项目文件夹下面运行 genpost 按照提示选择文章类型,输入文章标题和作者即可


genpost

___  / / /__(_)__  /_______________  /_
__  /_/ /__  /__  __ \  __ \  __ \  __/
_  __  / _  / _  /_/ / /_/ / /_/ / /_     Hiboot Application Framework
/_/ /_/  /_/  /_.___/\____/\____/\__/     https://hidevops.io/hiboot

Use the arrow keys to navigate: ↓ ↑ → ←

? 选择类型:
    Hiboot云原生应用框架
  ▸ 分享文章
    代码阅读

✔ 标题: 我的文章标题
✔ 作者: 邓冰寒

获取帮助

genpost -h

______  ____________             _____
___  / / /__(_)__  /_______________  /_
__  /_/ /__  /__  __ \  __ \  __ \  __/
_  __  / _  / _  /_/ / /_/ / /_/ / /_     Hiboot Application Framework
/_/ /_/  /_/  /_.___/\____/\____/\__/     https://hidevops.io/hiboot

Run genpost command

Usage:
  genpost [flags]

Examples:

1. 生成类别

✔ 目录: articles
✔ 标题: 分享文章
✔ 排序: 1

2. 生成文章
Use the arrow keys to navigate: ↓ ↑ → ←

? 选择类型:
    Hiboot云原生应用框架
  ▸ 分享文章
    代码阅读

✔ 标题: 我的文章标题
✔ 作者: 邓冰寒


Flags:
  -c, --category   --category=true or -c
  -h, --help       help for genpost

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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