taskid

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 3 Imported by: 0 modules, 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 taskid is the grammar of a task id: a prefix of letters and digits, a dash, a number. Every reader builds its pattern from these fragments, so they differ only where their input does.

Index

Constants

View Source
const (
	Typed    = `[A-Za-z][A-Za-z0-9]*`
	Word     = `(?:[A-Za-z]+|[A-Z][A-Z0-9]*)`
	Declared = `[A-Z][A-Z0-9]{1,9}`
)

The prefix as three readers see it. Typed is what a user types as a reference, any case. Word is the first word of a skill argument, where a prefix holding a digit counts only upper-case, so `x86-64` opening a description stays a description. Declared is the format a project declares and `f10 init` writes back, upper-case and two to ten long.

View Source
const Reference = `(?:(` + Typed + `)-)?#?(\d+)`

Reference is a typed task reference: a bare number, `#123`, or a prefixed id in any case, the prefix and the number captured.

Variables

This section is empty.

Functions

func IsNumber

func IsNumber(token string) bool

IsNumber reports a bare issue number.

func IsWord

func IsWord(token string) bool

IsWord reports a prefixed id as the first word of a skill argument reads it.

func Parse

func Parse(token string) (string, string, bool)

Parse splits a typed reference into its prefix, "" when bare, and number.

func RequestNumber

func RequestNumber(text string) int

RequestNumber reads a PR or MR number as a host writes it (#12, !12) or bare (12); anything else, `none` included, is 0.

func ValidPrefix

func ValidPrefix(prefix string) bool

ValidPrefix reports a prefix a project may declare.

Types

This section is empty.

Jump to

Keyboard shortcuts

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