Documentation
¶
Index ¶
- func BuildFileView() *tview.TextView
- func BuildSearchView(repo string) *tview.InputField
- func BuildTreeView(repo string, gt GitTree) *tview.TreeView
- func RetrieveDefaultBranch(client api.RESTClient, repo string) (string, error)
- func RetrieveFileContent(client api.RESTClient, repo, branch, filePath string) ([]byte, error)
- func SearchTreeView(repo string, gt GitTree, treeView *tview.TreeView) func(string)
- func SelectTreeNode(client api.RESTClient, repo, branch string, fileView *tview.TextView) func(*tview.TreeNode)
- type GitTree
- type GitTreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFileView ¶
func BuildSearchView ¶
func BuildSearchView(repo string) *tview.InputField
func RetrieveDefaultBranch ¶
func RetrieveDefaultBranch(client api.RESTClient, repo string) (string, error)
func RetrieveFileContent ¶
func RetrieveFileContent(client api.RESTClient, repo, branch, filePath string) ([]byte, error)
func SearchTreeView ¶
func SelectTreeNode ¶
Types ¶
type GitTree ¶
type GitTree []GitTreeNode
func RetrieveGitTree ¶
func RetrieveGitTree(client api.RESTClient, repo, branch string) (GitTree, error)
type GitTreeNode ¶
type GitTreeNode struct { Path string `json:"path"` Mode string `json:"mode"` Type string `json:"type"` Size int64 `json:"size"` SHA string `json:"sha"` URL string `json:"url"` }
func (*GitTreeNode) Dir ¶
func (gtn *GitTreeNode) Dir() string
func (*GitTreeNode) Ext ¶
func (gtn *GitTreeNode) Ext() string
func (*GitTreeNode) IsDir ¶
func (gtn *GitTreeNode) IsDir() bool
func (*GitTreeNode) Name ¶
func (gtn *GitTreeNode) Name() string
Click to show internal directories.
Click to hide internal directories.