diff --git a/config/defaults.go b/config/defaults.go index a7053c290fe619dbdf3ad174ec44620d0f43f42f..2617844193f8a15e4d6a2e2dfac465db7f032188 100644 --- a/config/defaults.go +++ b/config/defaults.go @@ -9,7 +9,7 @@ port: %d # Set the access level for anonymous users. Options are: read-write, read-only and no-access anon-access: %s -# Allow read only even if they don't have private keys, any password will work +# Allow users with no private keys read-only access. Any password is accepted. allow-no-keys: false # Customize repo display in menu @@ -19,6 +19,7 @@ repos: note: "Configuration and content repo for this server"` const hasKeyUserConfig = ` + # Users can read all repos, and push to collab-repos, admin can push to all repos users: - name: admin @@ -30,12 +31,12 @@ const defaultUserConfig = ` # users: # - name: admin # admin: true -# public-key: | +# public-key: # KEY TEXT` const exampleUserConfig = ` -# - name: little-buddy +# - name: Example User # collab-repos: -# - soft-serve -# public-key: | +# - REPO +# public-key: # KEY TEXT` diff --git a/tui/bubble.go b/tui/bubble.go index ef899922505aba30939cbc53a855cdf1dfe97a04..6ae9047c1d64cf6a25b4914fdf9e08226cee68aa 100644 --- a/tui/bubble.go +++ b/tui/bubble.go @@ -71,7 +71,6 @@ func (b *Bubble) Init() tea.Cmd { func (b *Bubble) Update(msg tea.Msg) (tea.Model, tea.Cmd) { cmds := make([]tea.Cmd, 0) - // Always allow state, error, info, window resize and quit messages switch msg := msg.(type) { case tea.KeyMsg: switch msg.String() {