Help us shape the future of Go! Take the 2026 Go Developer Survey

clone

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "clone",
	Short: "Clone application template",
	Long:  `Clone application template into user provided directory.`,
	PreRunE: func(cmd *cobra.Command, _ []string) error {
		return auth.EnsureAuthenticatedE(cmd.Context())
	},
	Run: func(_ *cobra.Command, args []string) {
		err := Run(args)
		if err != nil {
			log.Fatal(err)
			return
		}
	},
	ValidArgsFunction: completeTemplateIDs,
}

Functions

func Run

func Run(args []string) error

Types

type Model

type Model struct {
	Dir string

	SuccessCmd tea.Cmd
	BackCmd    tea.Cmd
	// contains filtered or unexported fields
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) IsCloning added in v0.2.7

func (m Model) IsCloning() bool

IsCloning returns whether the repository is currently being cloned

func (*Model) SetTemplate

func (m *Model) SetTemplate(template drapi.Template)

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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