image

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdImage

func NewCmdImage(props *props.Props) *setup.Command

func RunImage

func RunImage(ctx context.Context, props *props.Props, opts *ImageOptions, _ []string) error

RunImage sets a post's image from the article's cover or a pick (spec 0062 D4):

keryx post image --article <dir> --post <id> (--from-cover | --pick <path> | --gen "<brief>" [--take T] | --take T)

Types

type ImageOptions

type ImageOptions struct {
	Article   string
	Post      string
	FromCover bool
	Pick      string
	Gen       string
	Theme     string
	Takes     int
	Aspect    string
	Take      int
	Force     bool
}

Jump to

Keyboard shortcuts

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