runner

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

ABOUTME: Calculates checksum of seeder files for cache invalidation ABOUTME: Uses SHA256 hash of all .go files in seeder directory

ABOUTME: Dynamic seed runner that compiles and executes user seeders ABOUTME: Generates temporary Go program in project dir, compiles it, and runs seed commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateChecksum

func CalculateChecksum(dir string) (string, error)

CalculateChecksum calculates a SHA256 checksum of all .go files in the directory.

func CalculatePathHash

func CalculatePathHash(path string) string

CalculatePathHash calculates a short hash of the project path.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner handles dynamic compilation and execution of seeders.

func NewRunner

func NewRunner(verbose, rebuild bool) (*Runner, error)

NewRunner creates a new seed runner.

func (*Runner) Run

func (r *Runner) Run(seederName string) error

Run executes the seed command.

Jump to

Keyboard shortcuts

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