projectinit

package
v0.19.1 Latest Latest
Warning

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

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

Documentation

Overview

Package projectinit creates the on-disk Volcano project scaffold.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConflictMessages

func ConflictMessages(err error) ([]string, bool)

ConflictMessages returns formatted conflict details from an init error.

func ConflictsCanBeForced

func ConflictsCanBeForced(err error) bool

ConflictsCanBeForced reports whether --force can resolve every conflict in err.

Types

type Result

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

Result describes the filesystem changes made by one init run.

func Run

func Run(force bool) (*Result, error)

Run creates the Volcano project scaffold in the current directory.

func RunStarter

func RunStarter(starterName string, force bool) (*Result, error)

RunStarter creates the base scaffold plus an optional starter overlay.

func (*Result) Created

func (r *Result) Created() []string

Created returns paths created by init.

func (*Result) Overwritten

func (r *Result) Overwritten() []string

Overwritten returns paths replaced because force mode was enabled.

func (*Result) Unchanged

func (r *Result) Unchanged() []string

Unchanged returns existing paths that already matched the starter.

Jump to

Keyboard shortcuts

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