git

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentBranch

func GetCurrentBranch() (string, error)

func ParseIssueKey

func ParseIssueKey(param string) (string, error)

TODO: Probably not here

Types

type Gist

type Gist struct {
	ID    string              `json:"id"`
	Files map[string]GistFile `json:"files"`
}

type GistFile

type GistFile struct {
	Filename string `json:"filename"`
	Type     string `json:"type"`
	Language string `json:"language"`
	RawURL   string `json:"raw_url"`
	Size     int    `json:"size"`
	Content  string `json:"content"`
	Encoding string `json:"encoding"`
}

type GitClient

type GitClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *config.Config) *GitClient

func (*GitClient) GetGist

func (c *GitClient) GetGist(id string) (*Gist, error)

Jump to

Keyboard shortcuts

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