Documentation
¶
Index ¶
- Constants
- func AddToGitHubRepo(tui *sneatnav.TUI, client *github.Client, repo *github.Repository, ...) error
- func GetProjectShortTitle(p *dtconfig.ProjectRef) (projectTitle string)
- func GetProjectTitle(p *dtconfig.ProjectRef) (projectTitle string)
- func GoDataTugProjectsScreen(tui *sneatnav.TUI, focusTo sneatnav.FocusTo) error
- func GoDatatugProjectScreen(projectCtx *ProjectContext)
- func RegisterModule()
- func ShowAddToGitHubRepo(tui *sneatnav.TUI)
- type ProjectContext
- type ProjectScreenID
- type ProjectTitle
- type TviewProgressWriter
- type WithProjectConfig
Constants ¶
View Source
const ( ProjectScreenDashboards = "dashboards" ProjectScreenEnvironments = "environments" )
Variables ¶
This section is empty.
Functions ¶
func AddToGitHubRepo ¶
func AddToGitHubRepo(tui *sneatnav.TUI, client *github.Client, repo *github.Repository, repos []*github.Repository, reauth func()) error
func GetProjectShortTitle ¶
func GetProjectShortTitle(p *dtconfig.ProjectRef) (projectTitle string)
func GetProjectTitle ¶
func GetProjectTitle(p *dtconfig.ProjectRef) (projectTitle string)
func GoDataTugProjectsScreen ¶ added in v0.1.0
func GoDatatugProjectScreen ¶ added in v0.1.0
func GoDatatugProjectScreen(projectCtx *ProjectContext)
func RegisterModule ¶
func RegisterModule()
func ShowAddToGitHubRepo ¶
ShowAddToGitHubRepo - gets user credentials for GitHub api via OAuth2 Device Flow - selects repository to be used to store datatug project. - adds a `datatug` directory with config and README.md to the root of an existing GitHub repo. - adds a 'DataTug' section to the root README.md files linked to the `datatug` directory.
Types ¶
type ProjectContext ¶
func NewProjectContext ¶
func NewProjectContext( tui *sneatnav.TUI, store datatug.ProjectStore, config dtconfig.ProjectRef, ) *ProjectContext
func (ProjectContext) Config ¶
func (p ProjectContext) Config() *dtconfig.ProjectRef
func (ProjectContext) Project ¶
func (p ProjectContext) Project() *datatug.Project
func (ProjectContext) TUI ¶
func (p ProjectContext) TUI() *sneatnav.TUI
func (ProjectContext) WatchProject ¶
func (p ProjectContext) WatchProject() <-chan error
type ProjectScreenID ¶
type ProjectScreenID string
type ProjectTitle ¶ added in v0.1.0
type TviewProgressWriter ¶
type TviewProgressWriter struct {
// contains filtered or unexported fields
}
TviewProgressWriter implements io.Writer and appends text to a TextView safely via tview.Application.
func NewTviewProgressWriter ¶
func NewTviewProgressWriter(tui *sneatnav.TUI, tv *tview.TextView) *TviewProgressWriter
type WithProjectConfig ¶
type WithProjectConfig interface {
GetProjectConfig() *dtconfig.ProjectRef
}
Source Files
¶
- add_to_github_repo.go
- create_project_screen.go
- dashboards_screen.go
- databases.go
- datatug_demo_project.go
- dtprojects_init.go
- environments_panel.go
- environments_screen.go
- github_client.go
- project_context.go
- project_menu.go
- project_screen.go
- project_ui_helpers.go
- projects_ui.go
- queries_screen.go
- with_project_config.go
Click to show internal directories.
Click to hide internal directories.