scaffold

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package scaffold detects project type and generates cidx.toml configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTOML

func GenerateTOML(d *Detection) string

GenerateTOML produces a cidx.toml from detection results.

Types

type Detection

type Detection struct {
	Languages []Language
	HasGit    bool
	Remote    string // "github" or "gitlab" or ""
}

Detection holds the results of project analysis.

func Detect

func Detect(dir string) *Detection

Detect analyzes the current directory to determine project type.

type Language

type Language struct {
	Name     string
	Marker   string // file that triggered detection
	Security []string
	Code     []string
	Test     []string
	Build    []string
}

Language represents a detected project language/ecosystem.

Jump to

Keyboard shortcuts

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