directory

package
v1.231.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package directory copies initialization sources without interpreting templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context, source, target string, force bool) error

Copy copies a directory verbatim, excluding Git metadata. It checks the full tree before writing, rejects symlinks, and never merges or renders content.

func ValidateTarget

func ValidateTarget(target string, force bool) error

ValidateTarget checks a copy destination before fetching its source. Copy repeats this validation before writing, since the destination may change.

Types

This section is empty.

Jump to

Keyboard shortcuts

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