~amolith/public-inbox

rarangi: use string literal instead of multiple fmt.Println v1 REJECTED

Sol Fisher Romanoff: 1
 use string literal instead of multiple fmt.Println

 1 files changed, 23 insertions(+), 23 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~amolith/public-inbox/patches/26457/mbox | git am -3
Learn more about email & git

[PATCH rarangi] use string literal instead of multiple fmt.Println Export this patch

---
 rarangi.go | 46 +++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/rarangi.go b/rarangi.go
index 77bb835..25a23e9 100644
--- a/rarangi.go
+++ b/rarangi.go
@@ -96,29 +96,29 @@ func initialModel() model {
func printHelp() {
	s := termenv.String("stylish").Foreground(cprof.Color("5"))
	fmt.Printf("\n  Simple and %s todo TUI in Go\n\n", s)
	fmt.Println("USAGE")
	fmt.Println("  $ rarangi path/to/file.txt")
	fmt.Println("")
	fmt.Println("  The whole idea behind rārangi is to be incredibly simple.")
	fmt.Println("  Call the executable and provide the path to a text file. The")
	fmt.Println("  file should contain a bulleted list with + for complete tasks")
	fmt.Println("  and - for incomplete tasks. A title is optional and can be")
	fmt.Println("  included by using # in the first line followed by a space and")
	fmt.Println("  and then the title. Empty lines are ignored.")
	fmt.Println("")
	fmt.Println("Example file:")
	fmt.Println("  # List title")
	fmt.Println("  - First incomplete task")
	fmt.Println("  - Second incomplete task")
	fmt.Println("")
	fmt.Println("  + First complete task")
	fmt.Println("  + Second complete task")
	fmt.Println("")
	fmt.Println("Flags:")
	fmt.Println("  --help, -h	Print this message")
	fmt.Println("")
	fmt.Println("Commands:")
	fmt.Println("  help          Print this message")
	fmt.Println(`USAGE
  $ rarangi path/to/file.txt

  The whole idea behind rārangi is to be incredibly simple.
  Call the executable and provide the path to a text file. The
  file should contain a bulleted list with + for complete tasks
  and - for incomplete tasks. A title is optional and can be
  included by using # in the first line followed by a space and
  and then the title. Empty lines are ignored.

Example file:
  # List title
  - First incomplete task
  - Second incomplete task

  + First complete task
  + Second complete task

Flags:
  --help, -h	Print this message

Commands:
  help          Print this message`)
}

func (m model) Init() tea.Cmd {
-- 
2.33.1
Rejected because I already made that change on someone else's
recommendation :nkogun:
https://mk.nixnet.social/notes/8t1x2fg3xm