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