projectlink

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Overview

Package projectlink resolves the non-secret autback project selected by a Git repository.

Index

Constants

View Source
const FileName = "autback.json"

Variables

This section is empty.

Functions

func Resolve

func Resolve(ctx context.Context, directory, explicit, environment string) (string, error)

Resolve applies the public precedence contract: explicit flag, environment, then the nearest repository link while walking toward the Git root.

func Write

func Write(directory, project string) (string, error)

Write creates an idempotent, commit-safe project link in directory. It does not overwrite a link to a different project.

Types

type File

type File struct {
	Project string `json:"project"`
}

Jump to

Keyboard shortcuts

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