1package repo
2
3import (
4 "fmt"
5
6 "github.com/charmbracelet/soft-serve/server/config"
7 "github.com/charmbracelet/soft-serve/ui/common"
8)
9
10func defaultEmptyRepoMsg(cfg *config.Config, repo string) string {
11 return fmt.Sprintf(`# Quick Start
12
13Get started by cloning this repository, add your files, commit, and push.
14
15## Clone this repository.
16
17`+"```"+`sh
18git clone %[1]s
19`+"```"+`
20
21## Creating a new repository on the command line
22
23`+"```"+`sh
24touch README.md
25git init
26git add README.md
27git branch -M main
28git commit -m "first commit"
29git remote add origin %[1]s
30git push -u origin main
31`+"```"+`
32
33## Pushing an existing repository from the command line
34
35`+"```"+`sh
36git remote add origin %[1]s
37git push -u origin main
38`+"```"+`
39`, common.RepoURL(cfg.SSH.PublicURL, repo))
40}