Documentation
¶
Overview ¶
package projectinit owns project initialization planning, safe edits, and project-local dependency installation. callers provide artifact generation and diagnostic presentation without exposing command or publisher state.
Index ¶
Constants ¶
const LocalIgnoreRule = "/.tnl/local/"
Variables ¶
This section is empty.
Functions ¶
func RelativePath ¶
RelativePath names a file from the project root. Git may supply an ignore file on another volume, which requires its full path.
Types ¶
type FileChange ¶
type Plan ¶
type Plan struct {
Root string
PackageManager string
MissingPackages []string
ConfigurationPath string
NewConfiguration []byte
Framework string
FrameworkPath string
NewFrameworkConfig []byte
ServerPath string
ServerSource []byte
ServerReplacement []byte
Actions []string
InstallBlocked bool
GeneratedAppService bool
NeedsAppRegistration bool
}
Plan records the detected project and the edits init can safely make. planning reads files but does not install dependencies or write project state.
func NewPlan ¶
NewPlan uses actionForFailure only for recoverable detection diagnostics. the caller supplies their presentation; fatal errors retain their causes.
func (Plan) PackageInstall ¶
type Report ¶
type Report struct {
Files []FileChange `json:"files"`
Steps []Step `json:"steps"`
}
type Result ¶
type Result struct {
Root string
ConfigurationPath string
ConfigurationCreated bool
InstalledPackages []string
UpdatedPaths []string
DeclarationsPath string
PythonPackagePath string
PythonInstalled bool
Actions []string
Changed bool
Report Report
}
Result contains operation facts in their existing presentation order.