run

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// custom template file name
	CustomTemplateFile = "template.tmpl"
	// config file
	ConfigFile = "config.yaml"
	// output file name
	DefaultOutputFileName = "output.png"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Title  string   `yaml:"title"`
	Tags   []string `yaml:"tags"`
	Date   string   `yaml:"date"`
	Author string   `yaml:"author"`
}

config schema

type Ogp

type Ogp struct {
	Title    string
	IconPath string
	Author   string
}

Information on images to be generated

type Option added in v0.2.0

type Option func(*Options)

type Options added in v0.2.0

type Options struct {
	BasePath       string
	DefaultDirName string
}

type RunEFunc

type RunEFunc func(cmd *cobra.Command, args []string) error

func CreateArticleFunc

func CreateArticleFunc(timeFlag, noDirFlag *bool, name, author *string, options ...Option) RunEFunc

func CreateImageFunc

func CreateImageFunc(templateNo *int16, iconPath, outputPath *string, options ...Option) RunEFunc

Jump to

Keyboard shortcuts

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