0a01257fdd52c4d45316566ef19a836922f80f1f

Author
Toby Padilla <toby@charm.sh>
Committer
Toby Padilla <toby@charm.sh>
Date

Message

Update default text

Diff

 1diff --git a/config/defaults.go b/config/defaults.go
 2index a7053c290fe619dbdf3ad174ec44620d0f43f42f..2617844193f8a15e4d6a2e2dfac465db7f032188 100644
 3--- a/config/defaults.go
 4+++ b/config/defaults.go
 5@@ -9,7 +9,7 @@ port: %d
 6 # Set the access level for anonymous users. Options are: read-write, read-only and no-access
 7 anon-access: %s
 8 
 9-# Allow read only even if they don't have private keys, any password will work
10+# Allow users with no private keys read-only access. Any password is accepted.
11 allow-no-keys: false
12 
13 # Customize repo display in menu
14@@ -19,6 +19,7 @@ repos:
15     note: "Configuration and content repo for this server"`
16 
17 const hasKeyUserConfig = `
18+
19 # Users can read all repos, and push to collab-repos, admin can push to all repos
20 users:
21   - name: admin
22@@ -30,12 +31,12 @@ const defaultUserConfig = `
23 # users:
24 #   - name: admin
25 #     admin: true
26-#     public-key: |
27+#     public-key:
28 #       KEY TEXT`
29 
30 const exampleUserConfig = `
31-#   - name: little-buddy
32+#   - name: Example User
33 #     collab-repos:
34-#       - soft-serve
35-#     public-key: |
36+#       - REPO
37+#     public-key:
38 #       KEY TEXT`
39diff --git a/tui/bubble.go b/tui/bubble.go
40index ef899922505aba30939cbc53a855cdf1dfe97a04..6ae9047c1d64cf6a25b4914fdf9e08226cee68aa 100644
41--- a/tui/bubble.go
42+++ b/tui/bubble.go
43@@ -71,7 +71,6 @@ func (b *Bubble) Init() tea.Cmd {
44 
45 func (b *Bubble) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
46 	cmds := make([]tea.Cmd, 0)
47-	// Always allow state, error, info, window resize and quit messages
48 	switch msg := msg.(type) {
49 	case tea.KeyMsg:
50 		switch msg.String() {