browser

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package browser builds Jira web URLs and opens them in the OS default browser. URL construction is pure and testable; Open is thin platform glue shared by the CLI commands that grew a --web affordance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssueURL

func IssueURL(baseURL, key string) string

IssueURL returns the /browse/<key> URL for an issue, or "" when either the base URL or the key is empty.

func Open

func Open(ctx context.Context, rawURL string) error

Open launches url in the OS default browser, giving the launcher up to 10s. The URL must be built by the IssueURL/SearchURL helpers (callers never pass unvalidated input straight through).

func SearchURL

func SearchURL(baseURL, jqlQuery string) string

SearchURL returns the /issues/?jql=<query> URL for a JQL search, or "" when either the base URL or the query is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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