Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fatih/color
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.9.0
Choose a base ref
...
head repository: fatih/color
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.10.0
Choose a head ref
  • 8 commits
  • 136 files changed
  • 2 contributors

Commits on Oct 22, 2020

  1. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8023da8 View commit details
  2. Update Go version

    fatih committed Oct 22, 2020
    Copy the full SHA
    83e32ed View commit details
  3. Merge pull request #113 from fatih/add-gh-actions

    Update Go version
    fatih authored Oct 22, 2020
    Copy the full SHA
    736d972 View commit details

Commits on Oct 30, 2020

  1. Create dependabot.yml

    fatih authored Oct 30, 2020
    Copy the full SHA
    6a21c3b View commit details
  2. Copy the full SHA
    52c0908 View commit details
  3. Merge pull request #116 from fatih/fatih/update-actions

    Use the vendor folder explicitly
    fatih authored Oct 30, 2020
    Copy the full SHA
    f307df2 View commit details
  4. Bump github.com/mattn/go-colorable from 0.1.4 to 0.1.8

    Bumps [github.com/mattn/go-colorable](https://github.com/mattn/go-colorable) from 0.1.4 to 0.1.8.
    - [Release notes](https://github.com/mattn/go-colorable/releases)
    - [Commits](mattn/go-colorable@v0.1.4...v0.1.8)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 30, 2020
    Copy the full SHA
    bc34c4f View commit details
  5. Merge pull request #115 from fatih/dependabot/go_modules/github.com/m…

    …attn/go-colorable-0.1.8
    
    Bump github.com/mattn/go-colorable from 0.1.4 to 0.1.8
    fatih authored Oct 30, 2020
    Copy the full SHA
    bc22696 View commit details
Showing with 42,344 additions and 36,900 deletions.
  1. +6 −0 .github/dependabot.yml
  2. +6 −6 .github/workflows/go.yml
  3. +2 −11 README.md
  4. +2 −2 go.mod
  5. +7 −8 go.sum
  6. +9 −3 vendor/github.com/mattn/go-colorable/.travis.yml
  7. +2 −2 vendor/github.com/mattn/go-colorable/README.md
  8. +8 −0 vendor/github.com/mattn/go-colorable/colorable_appengine.go
  9. +8 −0 vendor/github.com/mattn/go-colorable/colorable_others.go
  10. +47 −9 vendor/github.com/mattn/go-colorable/colorable_windows.go
  11. +6 −1 vendor/github.com/mattn/go-colorable/go.mod
  12. +5 −4 vendor/github.com/mattn/go-colorable/go.sum
  13. +12 −0 vendor/github.com/mattn/go-colorable/go.test.sh
  14. +8 −7 vendor/github.com/mattn/go-isatty/.travis.yml
  15. +1 −1 vendor/github.com/mattn/go-isatty/README.md
  16. +1 −1 vendor/github.com/mattn/go-isatty/go.mod
  17. +2 −2 vendor/github.com/mattn/go-isatty/go.sum
  18. +12 −0 vendor/github.com/mattn/go-isatty/go.test.sh
  19. +0 −23 vendor/github.com/mattn/go-isatty/isatty_android.go
  20. +3 −9 vendor/github.com/mattn/go-isatty/isatty_bsd.go
  21. +0 −1 vendor/github.com/mattn/go-isatty/isatty_tcgets.go
  22. +8 −0 vendor/github.com/mattn/go-isatty/renovate.json
  23. +0 −7 vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
  24. +1 −0 vendor/golang.org/x/sys/unix/bluetooth_linux.go
  25. +8 −4 vendor/golang.org/x/sys/unix/fcntl.go
  26. +29 −0 vendor/golang.org/x/sys/unix/fdset.go
  27. +1 −1 vendor/golang.org/x/sys/unix/mkall.sh
  28. +10 −2 vendor/golang.org/x/sys/unix/mkerrors.sh
  29. +17 −2 vendor/golang.org/x/sys/unix/syscall_bsd.go
  30. +2 −17 vendor/golang.org/x/sys/unix/syscall_darwin.go
  31. +1 −1 vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go
  32. +0 −6 vendor/golang.org/x/sys/unix/syscall_freebsd.go
  33. +6 −0 vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
  34. +6 −0 vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
  35. +6 −0 vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
  36. +6 −0 vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
  37. +154 −3 vendor/golang.org/x/sys/unix/syscall_linux.go
  38. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_386.go
  39. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
  40. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_arm.go
  41. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
  42. +6 −2 vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
  43. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
  44. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
  45. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
  46. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
  47. +2 −2 vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
  48. +11 −17 vendor/golang.org/x/sys/unix/syscall_netbsd.go
  49. +8 −21 vendor/golang.org/x/sys/unix/syscall_openbsd.go
  50. +11 −1 vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go
  51. +11 −1 vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go
  52. +2,849 −2,755 vendor/golang.org/x/sys/unix/zerrors_linux_386.go
  53. +2,849 −2,755 vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
  54. +2,855 −2,761 vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
  55. +2,842 −2,748 vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
  56. +2,851 −2,757 vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
  57. +2,851 −2,757 vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
  58. +2,851 −2,757 vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
  59. +2,851 −2,757 vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
  60. +2,911 −2,816 vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
  61. +2,911 −2,816 vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
  62. +2,836 −2,742 vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
  63. +2,909 −2,815 vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
  64. +2,900 −2,805 vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
  65. +1 −1 vendor/golang.org/x/sys/unix/{zptracearm_linux.go → zptrace_armnn_linux.go}
  66. +17 −0 vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go
  67. +1 −1 vendor/golang.org/x/sys/unix/{zptracemips_linux.go → zptrace_mipsnn_linux.go}
  68. +1 −1 vendor/golang.org/x/sys/unix/{zptracemipsle_linux.go → zptrace_mipsnnle_linux.go}
  69. +1 −1 vendor/golang.org/x/sys/unix/{zptrace386_linux.go → zptrace_x86_linux.go}
  70. +11 −11 vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
  71. +16 −16 vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
  72. +4 −2 vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
  73. +11 −11 vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go
  74. +16 −16 vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
  75. +2 −2 vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
  76. +11 −11 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go
  77. +16 −16 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
  78. +4 −2 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
  79. +11 −11 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go
  80. +16 −16 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
  81. +4 −2 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
  82. +0 −11 vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
  83. +0 −11 vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
  84. +0 −11 vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
  85. +0 −11 vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
  86. +0 −11 vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go
  87. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
  88. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
  89. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
  90. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
  91. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
  92. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
  93. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
  94. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
  95. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
  96. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
  97. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
  98. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
  99. +110 −17 vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
  100. +51 −27 vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
  101. +51 −27 vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
  102. +51 −27 vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
  103. +51 −27 vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
  104. +28 −29 vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
  105. +28 −29 vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
  106. +28 −29 vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
  107. +28 −29 vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
  108. +1 −0 vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
  109. +1 −0 vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
  110. +1 −0 vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
  111. +1 −0 vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
  112. +1 −0 vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
  113. +10 −0 vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
  114. +11 −1 vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
  115. +11 −1 vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
  116. +11 −1 vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
  117. +11 −1 vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
  118. +193 −3 vendor/golang.org/x/sys/unix/ztypes_linux_386.go
  119. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
  120. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
  121. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
  122. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
  123. +195 −3 vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
  124. +195 −3 vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
  125. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
  126. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
  127. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
  128. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
  129. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
  130. +194 −3 vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
  131. +32 −0 vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
  132. +33 −0 vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
  133. +32 −0 vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
  134. +33 −0 vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go
  135. +7 −0 vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
  136. +3 −3 vendor/modules.txt
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/" # Location of go.mod
schedule:
interval: "daily"
12 changes: 6 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: build
on: [push, pull_request]
jobs:

@@ -7,19 +7,19 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.13
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.15.3
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Test
run: |
go mod tidy -v
go test -race ./...
go test -mod=vendor -race ./...
- name: Build
run: go build ./...
run: go build -mod=vendor ./...
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
# Archived project. No maintenance.

This project is not maintained anymore and is archived. Feel free to fork and
make your own changes if needed. For more detail read my blog post: [Taking an indefinite sabbatical from my projects](https://arslan.io/2018/10/09/taking-an-indefinite-sabbatical-from-my-projects/)

Thanks to everyone for their valuable feedback and contributions.


# Color [![GoDoc](https://godoc.org/github.com/fatih/color?status.svg)](https://godoc.org/github.com/fatih/color)
# color [![](https://github.com/fatih/color/workflows/build/badge.svg)](https://github.com/fatih/color/actions) [![PkgGoDev](https://pkg.go.dev/badge/github.com/fatih/color)](https://pkg.go.dev/github.com/fatih/color)

Color lets you use colorized outputs in terms of [ANSI Escape
Codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) in Go (Golang). It
has support for Windows too! The API can be used in several ways, pick one that
suits you.


![Color](https://i.imgur.com/c1JI0lA.png)
![Color](https://user-images.githubusercontent.com/438920/96832689-03b3e000-13f4-11eb-9803-46f4c4de3406.jpg)


## Install
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -3,6 +3,6 @@ module github.com/fatih/color
go 1.13

require (
github.com/mattn/go-colorable v0.1.4
github.com/mattn/go-isatty v0.0.11
github.com/mattn/go-colorable v0.1.8
github.com/mattn/go-isatty v0.0.12
)
15 changes: 7 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.11 h1:FxPOTFNqGkuDUGi3H/qkUbQO4ZiBa2brKq5r0l8TGeM=
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
12 changes: 9 additions & 3 deletions vendor/github.com/mattn/go-colorable/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/mattn/go-colorable/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions vendor/github.com/mattn/go-colorable/colorable_appengine.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions vendor/github.com/mattn/go-colorable/colorable_others.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 47 additions & 9 deletions vendor/github.com/mattn/go-colorable/colorable_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion vendor/github.com/mattn/go-colorable/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions vendor/github.com/mattn/go-colorable/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions vendor/github.com/mattn/go-colorable/go.test.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions vendor/github.com/mattn/go-isatty/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/mattn/go-isatty/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/mattn/go-isatty/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/mattn/go-isatty/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions vendor/github.com/mattn/go-isatty/go.test.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions vendor/github.com/mattn/go-isatty/isatty_android.go

This file was deleted.

12 changes: 3 additions & 9 deletions vendor/github.com/mattn/go-isatty/isatty_bsd.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading