cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRoot added in v0.1.0

func GetRoot() (string, error)

func GetSSHKeyPath added in v0.4.0

func GetSSHKeyPath() (string, error)

func GetUsername added in v0.1.0

func GetUsername() (string, error)

func LoadGhConfig added in v0.1.0

func LoadGhConfig() (*ghconfig.Config, error)

func LoadGitConfig added in v0.1.0

func LoadGitConfig() (*config.Config, error)

func ParseOwnerRepo added in v0.1.0

func ParseOwnerRepo(s string) (string, string, error)

Types

type Client

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

func NewClient

func NewClient() (*Client, error)

func (*Client) Create added in v0.1.0

func (c *Client) Create(owner, repo string) error

func (*Client) Get added in v0.1.0

func (c *Client) Get(owner, repo string) error

func (*Client) ListDirectories

func (c *Client) ListDirectories() ([]*Directory, error)

func (*Client) Remove added in v0.1.0

func (c *Client) Remove(owner, repo string, opts ...RemoveOption) error

type Directory

type Directory struct {
	Owner    string
	Repo     string
	FullPath string
}

func (*Directory) Path

func (d *Directory) Path(full bool) string

type RemoveOption added in v0.1.0

type RemoveOption func(*removeOptions)

func WithRemoveForce added in v0.1.0

func WithRemoveForce(b bool) RemoveOption

Jump to

Keyboard shortcuts

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