From 3c2f01361520bf0fba6420b10392d8abf0a9bcc6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Dec 2021 11:12:42 +0000 Subject: [PATCH] chore(deps): bump github.com/briandowns/spinner from 1.17.0 to 1.18.0 Bumps [github.com/briandowns/spinner](https://github.com/briandowns/spinner) from 1.17.0 to 1.18.0. - [Release notes](https://github.com/briandowns/spinner/releases) - [Commits](https://github.com/briandowns/spinner/compare/v1.17.0...v1.18.0) --- updated-dependencies: - dependency-name: github.com/briandowns/spinner dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 +-- .../github.com/briandowns/spinner/.travis.yml | 4 +-- vendor/github.com/briandowns/spinner/Makefile | 10 +++++--- .../github.com/briandowns/spinner/NOTICE.txt | 4 +++ .../github.com/briandowns/spinner/README.md | 7 ++++-- .../briandowns/spinner/character_sets.go | 25 +++++++++++++++++++ .../github.com/briandowns/spinner/spinner.go | 13 ++++++---- vendor/modules.txt | 2 +- 9 files changed, 54 insertions(+), 17 deletions(-) create mode 100644 vendor/github.com/briandowns/spinner/NOTICE.txt diff --git a/go.mod b/go.mod index 42eba0b7..6c236eeb 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/obalunenko/advent-of-code go 1.17 require ( - github.com/briandowns/spinner v1.17.0 + github.com/briandowns/spinner v1.18.0 github.com/manifoldco/promptui v0.9.0 github.com/obalunenko/getenv v1.0.0 github.com/obalunenko/logger v0.1.0 diff --git a/go.sum b/go.sum index d0ad127b..544930fd 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,6 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/briandowns/spinner v1.17.0 h1:7HjHI07APcVZBT71J2UvJl3CAvYCnqqCrxW5gXSDOVA= -github.com/briandowns/spinner v1.17.0/go.mod h1:QOuQk7x+EaDASo80FEXwlwiA+j/PPIcX3FScO+3/ZPQ= +github.com/briandowns/spinner v1.18.0 h1:SJs0maNOs4FqhBwiJ3Gr7Z1D39/rukIVGQvpNZVHVcM= +github.com/briandowns/spinner v1.18.0/go.mod h1:QOuQk7x+EaDASo80FEXwlwiA+j/PPIcX3FScO+3/ZPQ= github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d h1:S2NE3iHSwP0XV47EEXL8mWmRdEfGscSJ+7EgePNgt0s= github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE= diff --git a/vendor/github.com/briandowns/spinner/.travis.yml b/vendor/github.com/briandowns/spinner/.travis.yml index 5a00f590..74d205ae 100644 --- a/vendor/github.com/briandowns/spinner/.travis.yml +++ b/vendor/github.com/briandowns/spinner/.travis.yml @@ -3,8 +3,8 @@ arch: - ppc64le language: go go: - - 1.13 - - 1.14.1 + - 1.16 + - 1.17.5 env: - GOARCH: amd64 - GOARCH: 386 diff --git a/vendor/github.com/briandowns/spinner/Makefile b/vendor/github.com/briandowns/spinner/Makefile index bf0b48ae..3cfdeb23 100644 --- a/vendor/github.com/briandowns/spinner/Makefile +++ b/vendor/github.com/briandowns/spinner/Makefile @@ -1,9 +1,11 @@ -GO = GO111MODULE=on GOFLAGS=-mod=vendor go +GO = go .PHONY: deps -deps: - $(GO) mod download - $(GO) mod vendor +deps: go.mod + +go.mod: + go mod init + go mod tidy .PHONY: test test: diff --git a/vendor/github.com/briandowns/spinner/NOTICE.txt b/vendor/github.com/briandowns/spinner/NOTICE.txt new file mode 100644 index 00000000..e72228e9 --- /dev/null +++ b/vendor/github.com/briandowns/spinner/NOTICE.txt @@ -0,0 +1,4 @@ +Spinner +Copyright (c) 2021 Brian J. Downs +This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in compliance with the Apache 2.0 License. +This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license, as noted in the LICENSE file. diff --git a/vendor/github.com/briandowns/spinner/README.md b/vendor/github.com/briandowns/spinner/README.md index ddae178b..20b315fb 100644 --- a/vendor/github.com/briandowns/spinner/README.md +++ b/vendor/github.com/briandowns/spinner/README.md @@ -15,6 +15,9 @@ go get github.com/briandowns/spinner ``` ## Available Character Sets + +90 Character Sets. Some examples below: + (Numbered by their slice index) | index | character set | sample gif | @@ -151,7 +154,7 @@ You can specify both the background and foreground color, as well as additional s.Color("red", "bold") // Set the spinner color to a bold red ``` -Or to set the background to black, the foreground to a bold red: +To set the background to black, the foreground to a bold red: ```Go s.Color("bgBlack", "bold", "fgRed") @@ -159,7 +162,7 @@ s.Color("bgBlack", "bold", "fgRed") Below is the full color and attribute list: -``` +```Go // default colors red black diff --git a/vendor/github.com/briandowns/spinner/character_sets.go b/vendor/github.com/briandowns/spinner/character_sets.go index f0d74a8f..9c8a98b7 100644 --- a/vendor/github.com/briandowns/spinner/character_sets.go +++ b/vendor/github.com/briandowns/spinner/character_sets.go @@ -1,3 +1,17 @@ +// Copyright (c) 2021 Brian J. Downs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package spinner const ( @@ -25,6 +39,7 @@ var CharSets = map[int][]string{ 15: {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}, 16: {"▉", "▊", "▋", "▌", "▍", "▎", "▏", "▎", "▍", "▌", "▋", "▊", "▉"}, 17: {"■", "□", "▪", "▫"}, + 18: {"←", "↑", "→", "↓"}, 19: {"╫", "╪"}, 20: {"⇐", "⇖", "⇑", "⇗", "⇒", "⇘", "⇓", "⇙"}, @@ -86,6 +101,16 @@ var CharSets = map[int][]string{ 78: {"⠈⠁", "⠈⠑", "⠈⠱", "⠈⡱", "⢀⡱", "⢄⡱", "⢄⡱", "⢆⡱", "⢎⡱", "⢎⡰", "⢎⡠", "⢎⡀", "⢎⠁", "⠎⠁", "⠊⠁"}, 79: {"________", "-_______", "_-______", "__-_____", "___-____", "____-___", "_____-__", "______-_", "_______-", "________", "_______-", "______-_", "_____-__", "____-___", "___-____", "__-_____", "_-______", "-_______", "________"}, 80: {"|_______", "_/______", "__-_____", "___\\____", "____|___", "_____/__", "______-_", "_______\\", "_______|", "______\\_", "_____-__", "____/___", "___|____", "__\\_____", "_-______"}, + 81: {"□", "◱", "◧", "▣", "■"}, + 82: {"□", "◱", "▨", "▩", "■"}, + 83: {"░", "▒", "▓", "█"}, + 84: {"░", "█"}, + 85: {"⚪", "⚫"}, + 86: {"◯", "⬤"}, + 87: {"▱", "▰"}, + 88: {"➊", "➋", "➌", "➍", "➎", "➏", "➐", "➑", "➒", "➓"}, + 89: {"½", "⅓", "⅔", "¼", "¾", "⅛", "⅜", "⅝", "⅞"}, + 90: {"↞", "↟", "↠", "↡"}, } func init() { diff --git a/vendor/github.com/briandowns/spinner/spinner.go b/vendor/github.com/briandowns/spinner/spinner.go index 5f3a8bc0..7fc56f42 100644 --- a/vendor/github.com/briandowns/spinner/spinner.go +++ b/vendor/github.com/briandowns/spinner/spinner.go @@ -1,3 +1,5 @@ +// Copyright (c) 2021 Brian J. Downs +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at @@ -171,7 +173,7 @@ func validColor(c string) bool { // Spinner struct to hold the provided options. type Spinner struct { - mu *sync.RWMutex // + mu *sync.RWMutex Delay time.Duration // Delay is the speed of the indicator chars []string // chars holds the chosen character set Prefix string // Prefix is the text preppended to the indicator @@ -202,6 +204,7 @@ func New(cs []string, d time.Duration, options ...Option) *Spinner { for _, option := range options { option(s) } + return s } @@ -301,14 +304,14 @@ func (s *Spinner) Start() { var outColor string if runtime.GOOS == "windows" { if s.Writer == os.Stderr { - outColor = fmt.Sprintf("\r%s%s%s ", s.Prefix, s.chars[i], s.Suffix) + outColor = fmt.Sprintf("\r%s%s%s", s.Prefix, s.chars[i], s.Suffix) } else { - outColor = fmt.Sprintf("\r%s%s%s ", s.Prefix, s.color(s.chars[i]), s.Suffix) + outColor = fmt.Sprintf("\r%s%s%s", s.Prefix, s.color(s.chars[i]), s.Suffix) } } else { - outColor = fmt.Sprintf("\r%s%s%s ", s.Prefix, s.color(s.chars[i]), s.Suffix) + outColor = fmt.Sprintf("\r%s%s%s", s.Prefix, s.color(s.chars[i]), s.Suffix) } - outPlain := fmt.Sprintf("\r%s%s%s ", s.Prefix, s.chars[i], s.Suffix) + outPlain := fmt.Sprintf("\r%s%s%s", s.Prefix, s.chars[i], s.Suffix) fmt.Fprint(s.Writer, outColor) s.lastOutput = outPlain delay := s.Delay diff --git a/vendor/modules.txt b/vendor/modules.txt index 57d7bc6f..8a3fbd09 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,4 +1,4 @@ -# github.com/briandowns/spinner v1.17.0 +# github.com/briandowns/spinner v1.18.0 ## explicit; go 1.14 github.com/briandowns/spinner # github.com/certifi/gocertifi v0.0.0-20210507211836-431795d63e8d