1
0
mirror of https://github.com/fatih/color.git synced 2025-10-30 23:27:49 +02:00
Commit Graph

232 Commits

Author SHA1 Message Date
Klaus Post
00b1811a3d Fix multi-parameter println spacing
`fmt.Println` will add spaces between elements when there is multiple parameters sent.

When wrapping the colors parameters were combined using `fmt.Sprint(a...)` - which does not space out parameters.

Use `fmt.Sprintln` to combine parameters.

Fixes #218
2024-04-08 13:10:58 +02:00
Fatih Arslan
04994a819d Merge pull request #224 from fatih/dependabot/go_modules/golang.org/x/sys-0.18.0
Bump golang.org/x/sys from 0.17.0 to 0.18.0
2024-03-09 09:52:53 +03:00
Fatih Arslan
7526cad07e Merge branch 'main' into dependabot/go_modules/golang.org/x/sys-0.18.0 2024-03-09 09:52:05 +03:00
Fatih Arslan
8d058ca54c Merge pull request #222 from fatih/ci-updates
ci: update Go and Staticcheck versions
2024-03-09 09:51:08 +03:00
dependabot[bot]
2ac809fb73 Bump golang.org/x/sys from 0.17.0 to 0.18.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/sys/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-05 01:41:57 +00:00
Fatih Arslan
51a7bbf7dc ci: update Go and Staticcheck versions
Signed-off-by: Fatih Arslan <ftharsln@gmail.com>
2024-02-22 16:39:26 +03:00
Fatih Arslan
799c49c639 Merge pull request #217 from fatih/dependabot/github_actions/actions/setup-go-5
Bump actions/setup-go from 4 to 5
2024-02-22 10:39:28 +03:00
Fatih Arslan
f8e0ec9c97 Merge branch 'main' into dependabot/github_actions/actions/setup-go-5 2024-02-08 11:05:59 +03:00
Fatih Arslan
298abd8b9e Merge pull request #221 from fatih/dependabot/go_modules/golang.org/x/sys-0.17.0
Bump golang.org/x/sys from 0.14.0 to 0.17.0
2024-02-08 11:05:35 +03:00
dependabot[bot]
8b6a8411a7 Bump golang.org/x/sys from 0.14.0 to 0.17.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/sys/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 01:11:15 +00:00
dependabot[bot]
02cdf82254 Bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
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-12-11 01:19:24 +00:00
Fatih Arslan
0f9779ed47 Merge pull request #213 from fatih/dependabot/go_modules/golang.org/x/sys-0.14.0
Bump golang.org/x/sys from 0.13.0 to 0.14.0
v1.16.0
2023-11-06 11:25:55 +03:00
dependabot[bot]
0c78604296 Bump golang.org/x/sys from 0.13.0 to 0.14.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 01:23:30 +00:00
Fatih Arslan
96e0f73dae Merge pull request #208 from fatih/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2023-10-18 10:57:09 +03:00
dependabot[bot]
4c66e32708 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [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...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 07:54:40 +00:00
Fatih Arslan
2fb03d682e Merge pull request #202 from fatih/dependabot/github_actions/actions/setup-go-4
Bump actions/setup-go from 3 to 4
2023-10-18 10:53:58 +03:00
dependabot[bot]
8ba7bbdda9 Bump actions/setup-go from 3 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...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-10-18 07:47:56 +00:00
Fatih Arslan
e3f97f3408 Merge pull request #209 from fatih/dependabot/go_modules/golang.org/x/sys-0.13.0
Bump golang.org/x/sys from 0.10.0 to 0.13.0
2023-10-18 10:43:33 +03:00
dependabot[bot]
e146575883 Bump golang.org/x/sys from 0.10.0 to 0.13.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.13.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 07:37:58 +00:00
Fatih Arslan
d2d7a5e448 Merge pull request #212 from fatih/dependabot/go_modules/github.com/mattn/go-isatty-0.0.20
Bump github.com/mattn/go-isatty from 0.0.19 to 0.0.20
2023-10-18 10:37:16 +03:00
Fatih Arslan
f3e45da2c8 Merge branch 'main' into dependabot/go_modules/github.com/mattn/go-isatty-0.0.20 2023-10-18 10:17:27 +03:00
Fatih Arslan
1c78dedd6a Merge pull request #210 from gregpoirson/main
fixes #206
2023-10-18 10:16:48 +03:00
Fatih Arslan
b5f9b4c560 Apply suggestions from code review 2023-10-18 10:07:36 +03:00
dependabot[bot]
3c00bfda13 Bump github.com/mattn/go-isatty from 0.0.19 to 0.0.20
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.19 to 0.0.20.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.19...v0.0.20)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 01:29:47 +00:00
Greg Poirson
b756d513ef deleting manual workflow 2023-10-17 21:52:56 -03:00
greg
9f44e28c01 Create manual.yml
manual build workflow
2023-10-17 21:42:34 -03:00
Greg Poirson
db0d19c324 escape sequences instead of unicode ctrl char #206 2023-10-17 21:25:24 -03:00
Greg Poirson
641fc85af5 fixes #206 2023-10-16 21:27:30 -03:00
Greg Poirson
c211ac1e43 renaming the Reset names 2023-10-16 21:11:05 -03:00
greg
c949fee4aa Update color.go
Update color.go, following Fatih's suggestion

Co-authored-by: Fatih Arslan <ftharsln@gmail.com>
2023-10-16 20:59:19 -03:00
Greg Poirson
c33f29cd0e fixes #206 2023-10-13 19:30:42 -03:00
Fatih Arslan
d5c210ca2a Merge pull request #203 from hyunsooda/nilcheck-added
[Test] Nil check added
2023-07-18 16:59:41 +03:00
Hyunsoo Shin
0a87ecc21b [Test] Nil check added 2023-07-18 22:49:57 +09:00
Fatih Arslan
6de85811bf Merge pull request #201 from fatih/dependabot/github_actions/dominikh/staticcheck-action-1.3.0
Bump dominikh/staticcheck-action from 1.2.0 to 1.3.0
2023-07-12 10:20:33 +03:00
Fatih Arslan
f78dc5c6e4 Merge branch 'main' into dependabot/github_actions/dominikh/staticcheck-action-1.3.0 2023-07-12 10:18:21 +03:00
Fatih Arslan
73fdd8cb09 Merge pull request #192 from fatih/new-line-fix
color: add newline after wrapping text
2023-07-11 20:21:04 +03:00
dependabot[bot]
37d95f2a9e Bump dominikh/staticcheck-action from 1.2.0 to 1.3.0
Bumps [dominikh/staticcheck-action](https://github.com/dominikh/staticcheck-action) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/dominikh/staticcheck-action/releases)
- [Changelog](https://github.com/dominikh/staticcheck-action/blob/master/CHANGES.md)
- [Commits](https://github.com/dominikh/staticcheck-action/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: dominikh/staticcheck-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 17:19:16 +00:00
Fatih Arslan
dffd300330 Merge branch 'main' into new-line-fix 2023-07-11 20:19:09 +03:00
Fatih Arslan
9e983074ab Merge pull request #200 from ilyabrin/patch-1
Update dependabot.yml
2023-07-11 20:18:56 +03:00
Ilya Brin
41d93bed0d Update dependabot.yml
Check for updates to GitHub Actions every week
2023-07-08 16:32:54 +03:00
Fatih Arslan
4c85f957a2 Merge pull request #199 from fatih/dependabot/go_modules/golang.org/x/sys-0.10.0
Bump golang.org/x/sys from 0.8.0 to 0.10.0
2023-07-06 10:38:12 +03:00
dependabot[bot]
dcf1c2ef57 Bump golang.org/x/sys from 0.8.0 to 0.10.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.8.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-06 07:33:27 +00:00
Fatih Arslan
917f0f237a Merge pull request #196 from fatih/dependabot/go_modules/github.com/mattn/go-isatty-0.0.19
Bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19
2023-07-06 10:32:57 +03:00
dependabot[bot]
cb6cc9d706 Bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.18 to 0.0.19.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.18...v0.0.19)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 01:57:04 +00:00
Fatih Arslan
b639f3855e Merge branch 'main' into new-line-fix 2023-05-08 10:04:01 +03:00
Fatih Arslan
0f4a44a5fe Merge pull request #195 from fatih/dependabot/go_modules/golang.org/x/sys-0.8.0
Bump golang.org/x/sys from 0.6.0 to 0.8.0
2023-05-08 10:03:48 +03:00
dependabot[bot]
2d50e99c9e Bump golang.org/x/sys from 0.6.0 to 0.8.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.6.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.6.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 01:56:45 +00:00
Fatih Arslan
512b37839f Merge pull request #193 from fatih/dependabot/go_modules/github.com/mattn/go-isatty-0.0.18
Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18
2023-03-23 10:40:47 +03:00
dependabot[bot]
6d6bb3fafb Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.17 to 0.0.18.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.17...v0.0.18)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 01:57:30 +00:00
Fatih Arslan
a2983f4b63 color: add newline after wrapping text
The newline should be added after wrapping the input with escape
sequences. That way `less` or other commands can parse the output
correctly.

fixes https://github.com/fatih/color/issues/157
2023-03-12 20:10:19 +03:00