ghext

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ghext contains utillities for creating GitHub CLI extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(ctx context.Context) context.Context

Context prepares GitHub CLI extension context with http.Client and github.Client values. You can use ContextHTTPClient and ContextGitHubClient later to get client instances from the context.

func ContextGitHubClient

func ContextGitHubClient(ctx context.Context) *github.Client

ContextGitHubClient returns a *github.Client from context.

func ContextHTTPClient

func ContextHTTPClient(ctx context.Context) *http.Client

ContextHTTPClient returns a *http.Client from context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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