From 51e97bb959d7d9596f60ac9cb2fbe345ca44a5be Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 14 Oct 2020 11:51:04 -0400 Subject: [PATCH] Add descriptions to example programs and bump deps in examples --- examples/fullscreen/main.go | 3 ++- examples/go.mod | 5 +++-- examples/go.sum | 11 +++++++++-- examples/mouse/main.go | 3 +++ examples/pager/main.go | 3 +++ examples/spinner/main.go | 3 +++ examples/textinput/main.go | 3 +++ examples/textinputs/main.go | 3 +++ examples/views/main.go | 2 ++ 9 files changed, 31 insertions(+), 5 deletions(-) diff --git a/examples/fullscreen/main.go b/examples/fullscreen/main.go index e6d73b4..e8486d8 100644 --- a/examples/fullscreen/main.go +++ b/examples/fullscreen/main.go @@ -1,6 +1,7 @@ package main -// A simple program that counts down from 5 and then exits. +// A simple program that opens the alternate screen buffer then counts down +// from 5 and then exits. import ( "fmt" diff --git a/examples/go.mod b/examples/go.mod index 82272a9..dd01b90 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -4,12 +4,13 @@ go 1.13 require ( github.com/charmbracelet/bubbles v0.6.1 - github.com/charmbracelet/bubbletea v0.10.3 + github.com/charmbracelet/bubbletea v0.11.1 github.com/fogleman/ease v0.0.0-20170301025033-8da417bf1776 github.com/lucasb-eyer/go-colorful v1.0.3 github.com/mattn/go-runewidth v0.0.9 github.com/muesli/reflow v0.1.0 - github.com/muesli/termenv v0.7.2 + github.com/muesli/termenv v0.7.4 + golang.org/x/sys v0.0.0-20201014080544-cc95f250f6bc // indirect ) replace github.com/charmbracelet/bubbletea => ../ diff --git a/examples/go.sum b/examples/go.sum index ae38024..bb75853 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -2,6 +2,8 @@ github.com/atotto/clipboard v0.1.2 h1:YZCtFu5Ie8qX2VmVTBnrqLSiU9XOWwqNRmdT3gIQzb github.com/atotto/clipboard v0.1.2/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= github.com/charmbracelet/bubbles v0.6.1 h1:SnyRY9vJMXW1sjECGUVdbec4O6V425ImAkIdwX3HkK8= github.com/charmbracelet/bubbles v0.6.1/go.mod h1:MxySU+YRGbAhZQJavZlW2os+fIeOW69MI3iXqA+2/WA= +github.com/containerd/console v1.0.1 h1:u7SFAJyRqWcG6ogaMAx3KjSTy1e3hT9QxqX7Jco7dRc= +github.com/containerd/console v1.0.1/go.mod h1:XUsP6YE/mKtz6bxc+I8UiKKTP04qjQL4qcS3XoQ5xkw= github.com/fogleman/ease v0.0.0-20170301025033-8da417bf1776 h1:VRIbnDWRmAh5yBdz+J6yFMF5vso1It6vn+WmM/5l7MA= github.com/fogleman/ease v0.0.0-20170301025033-8da417bf1776/go.mod h1:9wvnDu3YOfxzWM9Cst40msBF1C2UdQgDv962oTxSuMs= github.com/google/goterm v0.0.0-20190703233501-fc88cf888a3f h1:5CjVwnuUcp5adK4gmY6i72gpVFVnZDP2h5TmPScB6u4= @@ -17,8 +19,10 @@ github.com/muesli/reflow v0.1.0 h1:oQdpLfO56lr5pgLvqD0TcjW85rDjSYSBVdiG1Ch1ddM= github.com/muesli/reflow v0.1.0/go.mod h1:I9bWAt7QTg/que/qmUCJBGlj7wEq8OAFBjPNjc6xK4I= github.com/muesli/termenv v0.7.2 h1:r1raklL3uKE7rOvWgSenmEm2px+dnc33OTisZ8YR1fw= github.com/muesli/termenv v0.7.2/go.mod h1:ct2L5N2lmix82RaY3bMWwVu/jUFc9Ule0KGDCiKYPh8= -github.com/pkg/term v0.0.0-20200520122047-c3ffed290a03 h1:pd4YKIqCB0U7O2I4gWHgEUA2mCEOENmco0l/bM957bU= -github.com/pkg/term v0.0.0-20200520122047-c3ffed290a03/go.mod h1:Z9+Ul5bCbBKnbCvdOWbLqTHhJiYV414CURZJba6L8qA= +github.com/muesli/termenv v0.7.4 h1:/pBqvU5CpkY53tU0vVn+xgs2ZTX63aH5nY+SSps5Xa8= +github.com/muesli/termenv v0.7.4/go.mod h1:pZ7qY9l3F7e5xsAOS0zCew2tME+p7bWeBkotCEcIIcc= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de h1:ikNHVSjEfnvz6sxdSPCaPt572qowuyMDMJLLm3Db3ig= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -29,6 +33,9 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200916030750-2334cc1a136f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634 h1:bNEHhJCnrwMKNMmOx3yAynp5vs5/gRy+XWFtZFu7NBM= golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201014080544-cc95f250f6bc h1:HVFDs9bKvTxP6bh1Rj9MCSo+UmafQtI8ZWDPVwVk9g4= +golang.org/x/sys v0.0.0-20201014080544-cc95f250f6bc/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/examples/mouse/main.go b/examples/mouse/main.go index ca5152d..b33ccc3 100644 --- a/examples/mouse/main.go +++ b/examples/mouse/main.go @@ -1,5 +1,8 @@ package main +// A simple program that opens the alternate screen buffer and displays mouse +// coordinates and events. + import ( "fmt" "log" diff --git a/examples/pager/main.go b/examples/pager/main.go index 1bca5c5..abf4e29 100644 --- a/examples/pager/main.go +++ b/examples/pager/main.go @@ -1,5 +1,8 @@ package main +// An example program demonstrating the pager component from the Bubbles +// component library. + import ( "fmt" "io/ioutil" diff --git a/examples/spinner/main.go b/examples/spinner/main.go index acf6009..e54356c 100644 --- a/examples/spinner/main.go +++ b/examples/spinner/main.go @@ -1,5 +1,8 @@ package main +// A simple program demonstrating the spinner component from the Bubbles +// component library. + import ( "fmt" "os" diff --git a/examples/textinput/main.go b/examples/textinput/main.go index f4ac243..be6c5ab 100644 --- a/examples/textinput/main.go +++ b/examples/textinput/main.go @@ -1,5 +1,8 @@ package main +// A simple program demonstrating the text input component from the Bubbles +// component library. + import ( "errors" "fmt" diff --git a/examples/textinputs/main.go b/examples/textinputs/main.go index 716f713..40ae18f 100644 --- a/examples/textinputs/main.go +++ b/examples/textinputs/main.go @@ -1,5 +1,8 @@ package main +// A simple example demonstrating the use of multiple text input components +// from the Bubbles component library. + import ( "fmt" "os" diff --git a/examples/views/main.go b/examples/views/main.go index 82bc734..27eb494 100644 --- a/examples/views/main.go +++ b/examples/views/main.go @@ -1,5 +1,7 @@ package main +// An example demonstrating an application with multiple views. + import ( "fmt" "math"