repository

package
v0.1.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL