Documentation
¶
Index ¶
- type Repository
- func (r *Repository) PromptForDescription(useOtherReader ...io.Reader) error
- func (r *Repository) PromptForName(useOtherReader ...io.Reader) error
- func (r *Repository) PromptForWorkspaces(useOtherReader ...io.Reader) error
- func (r *Repository) SetDescription(repoDescription string)
- func (r *Repository) SetName(repoName string)
- func (r *Repository) SetURL(repoURL string)
- func (r *Repository) ToRepository() pkgrepository.Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
pkgrepository.Repository
}
Repository wraps the canonical Repository class (in pkg/repository) and provides interface specific getters/setters for CLI usage
func (*Repository) PromptForDescription ¶
func (r *Repository) PromptForDescription(useOtherReader ...io.Reader) error
PromptForDescription makes a request to the user to enter in a description for this Repository instance
func (*Repository) PromptForName ¶
func (r *Repository) PromptForName(useOtherReader ...io.Reader) error
PromptForName makes a request to the user to enter in a name for this Repository instance. Defaults to the name of the directory if no name is entered
func (*Repository) PromptForWorkspaces ¶
func (r *Repository) PromptForWorkspaces(useOtherReader ...io.Reader) error
PromptForWorkspaces makes a request to the user to enter in a comma-separated string that indicates which workspaces they would like to add the repository to. Defaults to not having a list of workspaces.
func (*Repository) SetDescription ¶
func (r *Repository) SetDescription(repoDescription string)
SetDescription is a setter method for the .Description property
func (*Repository) SetName ¶
func (r *Repository) SetName(repoName string)
SetName is a setter method for the .Name property
func (*Repository) SetURL ¶
func (r *Repository) SetURL(repoURL string)
SetURL is a setter method for the .URL property
func (*Repository) ToRepository ¶
func (r *Repository) ToRepository() pkgrepository.Repository
ToRepository returns this Repository isntance as a canonical Repository