detect

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package detect drafts an anyship.yaml from a project's files.

Detection is rule-based and deterministic: the same repo always yields the same draft. It only drafts the spec — the user reviews and commits it, and every later deploy reads that file, not the detector.

Index

Constants

View Source
const ServiceName = "web"

ServiceName is the name given to the single service a draft contains.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detection

type Detection struct {
	Spec     *spec.Spec
	Findings []adapter.Finding
	// Evidence lists the human-readable reasons behind each guess.
	Evidence []string
}

func Project

func Project(dir string) (*Detection, error)

Project inspects dir and drafts a spec for it.

Jump to

Keyboard shortcuts

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