Documentation
¶
Overview ¶
Package clone implements the repo clone command
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloneOptions ¶
type CloneOptions struct {
IO *iostreams.IOStreams
HttpClient func() (*http.Client, error)
Config func() (config.Config, error)
// GitClone executes the git clone command. Injected by tests.
GitClone func(gitArgs []string, opts *CloneOptions) error
// Arguments
Repository string
Directory string
// Flags
GitProtocol string
Depth int
Branch string
Recursive bool
}
Source Files
¶
- clone.go
Click to show internal directories.
Click to hide internal directories.