Have got site creation working

This commit is contained in:
Leon Mika 2025-01-27 09:26:15 +11:00
parent 4ecc12f035
commit f8e7ea482b
15 changed files with 281 additions and 11 deletions

17
providers/git/provider.go Normal file
View file

@ -0,0 +1,17 @@
package git
import (
"context"
"os/exec"
)
type Provider struct {
}
func New() *Provider {
return &Provider{}
}
func (p *Provider) Clone(ctx context.Context, url string, targetDir string) error {
return exec.CommandContext(ctx, "git", "clone", url, targetDir).Run()
}