dtprojcreator

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ProjectReadmeContent = `# DataTug Project

This directory contains DataTug project configuration.`

Variables

This section is empty.

Functions

func CreateProjectFiles

func CreateProjectFiles(
	ctx context.Context,
	p *datatug.Project,
	projPath string,
	fs Storage,
	reportStatus datatug.StatusReporter,
) error

func IsCancelled

func IsCancelled(ctx context.Context) bool

IsCancelled is a helper to check for context cancellation

Types

type Storage

type Storage interface {
	FileExists(ctx context.Context, filePath string) (bool, error)
	OpenFile(ctx context.Context, filePath string) (io.ReadCloser, error)
	WriteFile(ctx context.Context, filePath string, reader io.Reader) error
	Commit(ctx context.Context, message string) error
}

Jump to

Keyboard shortcuts

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