identity

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package identity answers "who is acting" the same way for every caller — the CLI, the TUI, and the core gate — so a ticket is attributed and owned consistently no matter which one wrote to it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current(dir string) string

Current determines who is acting, preferring git's configured name so tickets are attributed the same way commits are. dir scopes the git lookup to a particular repository.

func Slug

func Slug(name string) string

Slug reduces name to a string safe as a path component: lowercase, [a-z0-9-] only, with runs of anything else collapsed to a single dash and no leading or trailing dash. A name that reduces to nothing gets a non-empty fallback, since an empty path component would silently write to the parent directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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