Documentation ¶
Index ¶
- func CleanGitURL(apiURL string) string
- func ConfirmSelectedProject() error
- func CreateRepository(client *client.Client, name, description string, private bool) (id string, err error)
- func Description(p *client.Project) string
- func Deselect(ctx *cli.Context, name string) error
- func List() ([]string, error)
- func ListResources() ([]*client.Project, error)
- func New(p *Project, location string, embedToken bool) error
- func Select(ctx *cli.Context, name string) error
- func SelectedProjectConfig() (configProject config.Project, err error)
- func SelectedProjectInterface() (project.Project, error)
- type Project
- type ProjectRepository
- type RepositoryHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanGitURL ¶
func ConfirmSelectedProject ¶
func ConfirmSelectedProject() error
func CreateRepository ¶
func Description ¶
func ListResources ¶
func New ¶
New creates a new project. It creates the config and code repositories and registers them with the auth server. It then creates a project on the auth server and sets the current project to the new project. After that it will clone the project then push the id, description, and email to the config.yaml file.
Args:
ctx: The cli context p: The project to create location: The location to clone the project to. If not specified, it clones to the current directory. embedToken: Whether to embed the auth token in the git config
func SelectedProjectConfig ¶
Types ¶
type ProjectRepository ¶
type ProjectRepository interface { Config() (*git.Repository, error) Code() (*git.Repository, error) CurrentBranch() (string, error) }
type RepositoryHandler ¶
type RepositoryHandler interface { Open() (ProjectRepository, error) Clone(tauProject config.Project, embedToken bool) (ProjectRepository, error) }
func Repository ¶
func Repository(projectName string) RepositoryHandler
Click to show internal directories.
Click to hide internal directories.