open

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package open provides commands to open a task's context in various ways.

Four operations are supported: Editor (exec into $TT_EDITOR/$EDITOR/vi at the worktree root), Term (exec into $SHELL), Session (tmux attach to the worker's tmux session), and PR (open the task's pull request in the system browser). All operations resolve the task by UUID via taskwarrior.

Plane: shared

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Editor

func Editor(uuid string) error

Editor opens the task's project directory (or worktree) in an editor.

func PR

func PR(uuid string) error

func ResolveAgentSession added in v1.7.0

func ResolveAgentSession(tags []string, teamName, teamPath string) (string, bool)

ResolveAgentSession checks if any of the given tags match a known agent name. Agent tags are lowercase and exactly match the agent filename stem (e.g. +astra → astra.md). Returns the agent's session name and true if found, or ("", false) otherwise.

func Session

func Session(uuid string) error

Session attaches to the tmux session associated with a task. Checks worker session first, then falls back to agent session.

func Term

func Term(uuid string) error

Term opens a terminal (shell) in the task's working directory (worktree or project root).

Types

This section is empty.

Jump to

Keyboard shortcuts

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