clone

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package clone implements the repo clone command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdClone

func NewCmdClone(f *cmdutil.Factory, runF func(*CloneOptions) error) *cobra.Command

NewCmdClone creates the clone command

Types

type CloneOptions

type CloneOptions struct {
	IO         *iostreams.IOStreams
	HttpClient func() (*http.Client, error)

	// Arguments
	Repository string
	Directory  string

	// Flags
	GitProtocol string
	Depth       int
	Branch      string
	Recursive   bool
}

Source Files

  • clone.go

Jump to

Keyboard shortcuts

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