@@ -2,16 +2,17 @@ package RuleDialog
22
33import (
44 "fmt"
5- "github.com/charmbracelet/bubbles/list"
6- "github.com/charmbracelet/bubbles/textinput"
7- tea "github.com/charmbracelet/bubbletea"
8- "github.com/charmbracelet/lipgloss"
9- "github.com/redis/go-redis/v9"
105 "io"
116 "smart-cache-cli/ConfirmationDialog"
127 "smart-cache-cli/RedisCommon"
138 "smart-cache-cli/util"
149 "strings"
10+
11+ "github.com/charmbracelet/bubbles/list"
12+ "github.com/charmbracelet/bubbles/textinput"
13+ tea "github.com/charmbracelet/bubbletea"
14+ "github.com/charmbracelet/lipgloss"
15+ "github.com/redis/go-redis/v9"
1516)
1617
1718type item struct { ruleType RedisCommon.RuleType }
@@ -242,22 +243,22 @@ func (m Model) View() string {
242243 var b strings.Builder
243244
244245 if m .ruleType == RedisCommon .Unknown {
245- b .WriteString ("select a rule type, press ctrl+b to return to the previous screen\n " )
246+ b .WriteString (" == Create rule menu == \n \n Select the type of rule you want to create. \n Press [CTRL+B] to return to the previous screen. \n \n " )
246247 b .WriteString (m .typeSelectorList .View ())
247248 return b .String ()
248249 } else if m .match == "" && m .ruleType != RedisCommon .All {
249250 b .WriteString (m .ruleSoFar ())
250251 if m .ruleType == RedisCommon .Regex {
251- b .WriteString ("Input a regular expression to match against:" )
252+ b .WriteString ("Enter a regular expression to match against:" )
252253 } else if m .ruleType == RedisCommon .QueryIds {
253- b .WriteString ("Input a comma delimited list of Query Ids to match against:" )
254+ b .WriteString ("Enter a comma-separated list of Query IDs to match against:" )
254255 } else {
255- b .WriteString ("Input a comma delimited list of tables to match against:" )
256+ b .WriteString ("Enter a comma-separated list of tables to match against:" )
256257 }
257258 b .WriteString (m .textInput .View ())
258259 } else {
259260 b .WriteString (m .ruleSoFar ())
260- b .WriteString ("Input TTL in the form of a duration e.g. 1h, 300s, 5m: " )
261+ b .WriteString ("Enter a TTL in the form of a duration ( e.g. 1h, 300s, 5m): " )
261262 b .WriteString (m .textInput .View ())
262263 }
263264
0 commit comments