Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nib.Nib implementation inkpen with color and icon prefix support #6

Closed
svengreb opened this issue Sep 22, 2020 · 0 comments · Fixed by #7
Closed

nib.Nib implementation inkpen with color and icon prefix support #6

svengreb opened this issue Sep 22, 2020 · 0 comments · Fixed by #7

Comments

@svengreb
Copy link
Owner

Implement a new package inkpen that implements the nib.Nib API v0 (designed in #5) with color support, custom prefixes and verbosity level icons for human-facing CLI messages.

The default IO output stream will be configurable by accepting a io.Writer. The default writer will be color.Output of the github.com/fatih/color that is used and provides automatic TTY and terminal color support detection.

The following verbosity levels will be implemented with default icons:

  • ⦿ debug
  • error
  • fatal
  • info
  • success
  • ! warning
@svengreb svengreb added this to the 0.1.0 milestone Sep 22, 2020
@svengreb svengreb self-assigned this Sep 22, 2020
svengreb added a commit that referenced this issue Sep 22, 2020
Implemented the new package `inkpen` that implements the `nib.Nib` API
v0 (designed in #5 [1]) with color support, custom prefixes and
verbosity level icons for human-facing CLI messages.

The default IO output stream is configurable by accepting a
io.Writer [2]. The default writer is color.Output [3] of the
github.com/fatih/color [4] that is used and provides automatic TTY and
terminal color support detection.

The following verbosity levels [5] is implemented with default icons:

- ⦿ `debug`
- ✕ `error`
- ⭍ `fatal`
- ➜ `info`
- ✓ `success`
- ! `warning`

[1]: https://github.com/svengreb/nib/pull/
[2]: https://golang.org/pkg/io/#Writer
[3]: https://github.com/fatih/color/blob/fccafd9e876be44d0d7b380a3b03aeb661c1e231/color.go#L25
[4]: https://github.com/fatih/color
[5]: https://github.com/svengreb/nib/blob/400390915ca497add7c43aa1ff232a08c8501081/verbosity.go

GH-6
svengreb added a commit that referenced this issue Sep 22, 2020
Implemented the new package `inkpen` that implements the `nib.Nib` API
v0 (designed in #5 [1]) with color support, custom prefixes and
verbosity level icons for human-facing CLI messages.

The default IO output stream is configurable by accepting a
io.Writer [2]. The default writer is color.Output [3] of the
github.com/fatih/color [4] that is used and provides automatic TTY and
terminal color support detection.

The following verbosity levels [5] is implemented with default icons:

- ⦿ `debug`
- ✕ `error`
- ⭍ `fatal`
- ➜ `info`
- ✓ `success`
- ! `warning`

[1]: https://github.com/svengreb/nib/pull/
[2]: https://golang.org/pkg/io/#Writer
[3]: https://github.com/fatih/color/blob/fccafd9e876be44d0d7b380a3b03aeb661c1e231/color.go#L25
[4]: https://github.com/fatih/color
[5]: https://github.com/svengreb/nib/blob/400390915ca497add7c43aa1ff232a08c8501081/verbosity.go

Resolves GH-6
@svengreb svengreb removed their assignment Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant