Commit Graph

275 Commits

Author SHA1 Message Date
dependabot[bot]
da2d04b534 chore(deps): bump actions/checkout from 3.4.0 to 3.5.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-25 08:24:43 +01:00
dependabot[bot]
06dd20ee57 chore(deps): bump actions/checkout from 3.3.0 to 3.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.3.0...v3.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 11:05:48 +01:00
dependabot[bot]
403643d322 chore(deps): bump actions/setup-go from 2 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 11:05:16 +01:00
Glenn Gonda
303724f7da
docs: fix typos and clean up comments (#182) 2023-03-12 11:04:42 +01:00
Glenn Gonda
53cc780a5a chore: use io pkg for Discard 2023-03-12 05:26:34 +01:00
Carlos Alexandro Becker
9afe8e2952
fix: retract v0.7.0 (#181)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-10 10:28:23 -03:00
Christian Muehlhaeuser
c43b22e00f chore: bump termenv to v0.15.1 2023-03-09 19:54:32 +01:00
Ayman Bagabas
7f47f0b5e0 fix(renderer): use termenv default renderer
Creating a _new_ global termenv output clashes with the default global
termenv output leading the terminal to block and freeze.
Share the default termenv output with the global default lipgloss renderer.
2023-03-09 19:38:42 +01:00
Christian Rocha
19ca9a3f8c
docs: renderer documentation (#175)
* docs(readme): add some context to the examples

* docs(readme): revert to render-function-based initial example

* docs(readme): drop extraneous stringer usage

* docs(readme): copyedits

* docs(renderer): minor documentation improvements

* docs(readme): edit renderer section to focus on custom outputs

* docs(readme): for now just use SetString to illustrate stringer

* docs(readme): re-add Ayman's clever stringer example

* docs(examples): tidy up wish example

* docs(examples): improve wish example

* docs(examples): session is an io.Writer

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>

* docs(examples): add missing pty argument

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>

* docs(example): remove extra space

* fix(examples): use termenv output

---------

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
2023-03-08 14:51:26 -05:00
Ayman Bagabas
b3440ac41f feat(go): bump termenv to v0.15 2023-03-08 09:54:27 -08:00
Ayman Bagabas
c5382b35ef ref(renderer): change renderer impl 2023-03-08 09:54:27 -08:00
László GÖRÖG
d09532a91a chore: unify get border size function names 2023-03-08 09:16:03 -05:00
Ayman Bagabas
4eea195dfa feat(go): upgrade golang to 1.17
feat(examples): upgrade golang to 1.17
2023-03-07 16:44:08 +01:00
István Donkó
1eab58f1d8 docs: fix the description of MaxHeight 2023-03-01 13:58:42 +01:00
Christian Muehlhaeuser
a74950e6da fix: don't concurrently change output profiles
Multiple lipgloss renderer instances can end up using the same default
termenv.Output. This leads to a race condition when manipulating the
ColorProfile concurrently.

We could mutex protect the standard output in termenv, but it feels like
a weak promise, as the rest of the Output wouldn't (and probably
shouldn't) get protected. Protecting it in lipgloss itself would require
a global lock however.

I can't come up with a proper use-case for this scenario, and therefore
we shift this responsibility to the user.
2023-02-22 17:28:33 +01:00
Ayman Bagabas
776c15f0da chore(examples): update ssh example
chore(examples): go mod tidy
2023-02-09 11:59:54 -05:00
Ayman Bagabas
5e2b9055dc docs: update readme 2023-02-09 11:59:54 -05:00
Ayman Bagabas
cb0f2fd931 chore(tests): add more style tests 2023-02-09 11:59:54 -05:00
Ayman Bagabas
60d090659b feat(opts): use style options 2023-02-09 11:59:54 -05:00
Ayman Bagabas
abee24064a docs: update readme example 2023-02-09 11:59:54 -05:00
Ayman Bagabas
29a309cde1 fix: renderer nil check 2023-02-09 11:59:54 -05:00
Ayman Bagabas
53fe53727e feat: conform to the Go color interface
implement RGBA with the default output
2023-02-09 11:59:54 -05:00
Ayman Bagabas
e5401eb8b8 feat(renderer): add WithTermenvOutput option 2023-02-09 11:59:54 -05:00
Ayman Bagabas
4aa1f38785 chore: use unified examples go.mod 2023-02-09 11:59:54 -05:00
Ayman Bagabas
0a35904daa fix(whitespace): style color profile 2023-02-09 11:59:54 -05:00
Ayman Bagabas
8565b7428f fix(whitespace): use position renderer 2023-02-09 11:59:54 -05:00
Ayman Bagabas
3fe14d0547 chore: add ssh example 2023-02-09 11:59:54 -05:00
Ayman Bagabas
6f6b47fbe3 docs: update readme
* add new color types
* more examples
* custom renderer example
2023-02-09 11:59:54 -05:00
Ayman Bagabas
b9c2626fe7 feat(renderer): use style renderer
lipgloss.Style now takes a renderer instance to be used to detect styles
and colors based on its termenv.Output and terminal
2023-02-09 11:59:54 -05:00
Ayman Bagabas
31ab45f810 feat: instantiate lipgloss renderers
* Use lipgloss instances instead of a singleton global instance
* Deprecate (s Style).Render & (s Style).String
* Deprecate the Stringer interface
* Update README and godocs
* Update example
2023-02-09 11:59:54 -05:00
Carlos A Becker
f754c404f6 fix: reduce dependencies
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-09 11:59:54 -05:00
Carlos A Becker
14eeaa6ffa fix: reduce dependencies
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-03 12:14:45 +01:00
dependabot[bot]
b5904dc6ad chore(deps): bump actions/checkout from 3.1.0 to 3.3.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.1.0...v3.3.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 11:41:04 +01:00
Christian Muehlhaeuser
04a7a77281 chore: disable dependabot timer 2022-11-18 02:10:07 +01:00
nervo
1c1240fd65
docs: fix various typos (#156) 2022-11-08 10:55:11 +01:00
Victor/Alyx Bersy
9ee8b6e19f
feat: add BlockBorder, OuterHalfBlockBorder, and InnerHalfBlockBorder border styles (#120) 2022-10-27 15:02:57 -04:00
dependabot[bot]
c85c4f4456 feat(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-25 03:14:22 +02:00
Christian Muehlhaeuser
cdc8b16b07 docs: new readme footer 2022-10-24 10:18:43 +02:00
Will Winder
3dd9f0bfb8 docs: minor fixes to comments 2022-10-15 15:40:38 -04:00
dependabot[bot]
92c8fa0a57 chore(deps): bump actions/checkout from 2 to 3.1.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 12:43:40 +02:00
Christian Muehlhaeuser
e36ced828f chore: go mod tidy in example 2022-10-06 11:10:41 +02:00
dependabot[bot]
ae7c84f7b1 feat(deps): bump github.com/mattn/go-runewidth from 0.0.13 to 0.0.14
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/mattn/go-runewidth/releases)
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.13...v0.0.14)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-30 08:44:01 +02:00
dependabot[bot]
5c31e2f6ab feat(deps): bump github.com/stretchr/testify from 1.7.1 to 1.8.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-30 08:37:07 +02:00
Christian Muehlhaeuser
e087d81d08 ci: bump linter workflow 2022-09-30 08:34:40 +02:00
Christian Muehlhaeuser
ce2c889fb7 chore: add dependabot config 2022-09-30 08:22:02 +02:00
Christian Muehlhaeuser
8832087534 ci: add coverage workflow 2022-09-30 08:03:48 +02:00
Christian Rocha
30dc6d9f2b docs(readme): ASCII is an acronym 2022-09-30 07:22:31 +02:00
Christian Rocha
b10373fbc6 docs: add feedback section to README 2022-09-30 07:22:31 +02:00
Christian Rocha
b4057ad28a docs: use new footer image 2022-09-30 07:22:31 +02:00
Carlos A Becker
065368aa11 test: simplify & improve output
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-30 05:41:52 +02:00