Documentation
¶
Index ¶
- Constants
- Variables
- func AbortOnRepoState(repo domain.Repository, style lipgloss.Style) error
- func GetMaxLen(project domain.Project) int
- func GetTheme(themeSettings domain.Theme) (config.Theme, error)
- func ParseArgs(args []string, skipRepoSelect bool, deps types.RuntimeCLI) (domain.Project, *domain.Repository, error)
- func Path(path, homeDir string) string
- func ProjectTitle(project domain.Project, theme config.Theme) string
- func ProjectTitleWithBullet(project domain.Project, theme config.Theme) string
- func ProjectTreeTitle(project domain.Project, homeDir string, theme config.Theme) string
- func RenderErrors(errs []error, excludeWarnings bool) error
- func RepoError(err error, repo domain.Repository) types.Warning
- func RepoTitle(repo domain.Repository, basePath string, homeDir string, theme config.Theme) lipgloss.Style
- func SelectBranch(projName string, repo domain.Repository, deps types.RuntimeCLI) (string, error)
- func SelectProject(deps types.RuntimeCLI) (string, error)
- func SelectRepo(rootProject string, project domain.Project, deps types.RuntimeCLI) (string, error)
Constants ¶
View Source
const ( LeftMargin = 2 RightMargin = 2 )
Variables ¶
View Source
var ( ErrNotRepository = fmt.Errorf("not a repository") ErrNotCloned = fmt.Errorf("not cloned") )
Functions ¶
func AbortOnRepoState ¶
func AbortOnRepoState(repo domain.Repository, style lipgloss.Style) error
AbortOnRepoState prints an error message and aborts if the repository is in an error state.
func ParseArgs ¶
func ParseArgs(args []string, skipRepoSelect bool, deps types.RuntimeCLI) ( domain.Project, *domain.Repository, error, )
ParseArgs parses the arguments and returns the project and repo.
func ProjectTitle ¶
ProjectTitle returns a formatted project title.
func ProjectTitleWithBullet ¶
ProjectTitleWithBullet returns a formatted project title.
func ProjectTreeTitle ¶
ProjectTreeTitle returns a formatted project title for tree display.
func RenderErrors ¶ added in v0.10.0
func RepoTitle ¶
func RepoTitle(repo domain.Repository, basePath string, homeDir string, theme config.Theme) lipgloss.Style
RepoTitle returns a formatted repository title.
func SelectBranch ¶
func SelectBranch( projName string, repo domain.Repository, deps types.RuntimeCLI, ) (string, error)
SelectBranch returns an interactively selected branch name.
func SelectProject ¶
func SelectProject(deps types.RuntimeCLI) (string, error)
SelectProject returns an interactively selected project name.
func SelectRepo ¶
func SelectRepo( rootProject string, project domain.Project, deps types.RuntimeCLI, ) (string, error)
SelectRepo returns an interactively selected repository name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.