Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthStatus ¶
AuthStatus represents the authentication status from gh CLI
type Client ¶
type Client struct{}
Client wraps the gh CLI for GitHub operations
func (*Client) Clone ¶
Clone clones a GitHub repository to the specified destination. repoURL can be:
- Full URL: https://github.com/owner/repo
- Short form: owner/repo
If dest is empty, clones to the repo name in current directory.
func (*Client) CloneToTemp ¶
CloneToTemp clones a repository to a temporary directory and returns the path. The caller is responsible for cleaning up the directory.
func (*Client) GetAuthStatus ¶
func (c *Client) GetAuthStatus() (*AuthStatus, error)
GetAuthStatus returns the current authentication status
func (*Client) IsAvailable ¶
IsAvailable checks if the gh CLI is installed and authenticated
func (*Client) IsInstalled ¶
IsInstalled checks if the gh CLI is installed (regardless of auth status)
Click to show internal directories.
Click to hide internal directories.