aiflags

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package aiflags provides shared flags for AI image generation plugins. These flags are common across all AI-based input plugins like googlegenai and openrouter.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Prompt is the text description for image generation.
	Prompt string

	// Model is the AI model to use for generation.
	Model string

	// ListModels indicates whether to list available models and exit.
	ListModels bool

	// NoExtendedPrompt disables automatic wallpaper prompt enhancements.
	NoExtendedPrompt bool

	// NoNegativePrompt disables the default negative prompt.
	NoNegativePrompt bool

	// NegativePrompt is a custom negative prompt to discourage certain elements.
	NegativePrompt string
)

Shared AI flag variables - these are shared across all AI plugins.

Functions

func IsRegistered

func IsRegistered() bool

IsRegistered returns whether the flags have been registered.

func RegisterFlags

func RegisterFlags(cmd *cobra.Command) bool

RegisterFlags registers the shared AI flags on the given command. This should be called by each AI plugin - it will only register once. Returns true if this call performed the registration, false if already registered.

func Reset

func Reset()

Reset resets all flag values to defaults. Useful for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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