repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
625dcb4
parent
c9c12bb
author
Eric Bower
date
2024-05-17 16:23:50 +0000 UTC
docs(tui): copy
2 files changed,  +2, -9
M tui/pubkeys/keys.go
+1, -1
1@@ -229,7 +229,7 @@ func (m Model) View() string {
2 	case stateQuitting:
3 		s = "Thanks for using pico.sh!\n"
4 	default:
5-		s = "Here are the keys linked to your pico.sh account.\n\n"
6+		s = "Here are the pubkeys linked to your account. Add more pubkeys to be able to login with multiple SSH keypairs.\n\n"
7 
8 		// Keys
9 		s += m.keysView()
M tui/tokens/tokens.go
+1, -8
 1@@ -16,7 +16,6 @@ const (
 2 	stateLoading state = iota
 3 	stateNormal
 4 	stateDeletingKey
 5-	stateQuitting
 6 )
 7 
 8 type keyState int
 9@@ -149,9 +148,6 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
10 		m.tokens = msg
11 
12 	case unlinkedKeyMsg:
13-		if m.state == stateQuitting {
14-			return m, tea.Quit
15-		}
16 		i := m.getSelectedIndex()
17 
18 		// Remove key from array
19@@ -197,11 +193,8 @@ func (m Model) View() string {
20 	switch m.state {
21 	case stateLoading:
22 		s = "Loading...\n\n"
23-	case stateQuitting:
24-		s = "Thanks for using pico.sh!\n"
25 	default:
26-		s = "Here are the tokens linked to your account.\n\n"
27-		s += "A token can be used for connecting to our\nIRC bouncer from your client.\n\n"
28+		s = "Here are the tokens linked to your account. An API token can be used for connecting to our IRC bouncer or your pico RSS feed.\n\n"
29 
30 		// Keys
31 		s += keysView(m)