~amolith/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

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

Sol Fisher Romanoff <sol@solfisher.com>
Details
Message ID
<20211113220350.69999-1-sol@solfisher.com>
DKIM signature
missing
Download raw message
Patch: +23 -23
---
 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
Details
Message ID
<20211113221105.6tc6ba3dvuc5ags2@angmar>
In-Reply-To
<20211113220350.69999-1-sol@solfisher.com> (view parent)
DKIM signature
missing
Download raw message
Rejected because I already made that change on someone else's
recommendation :nkogun:
https://mk.nixnet.social/notes/8t1x2fg3xm
Reply to thread Export thread (mbox)