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.10.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.11.0
Choose a head ref
  • 9 commits
  • 317 files changed
  • 3 contributors

Commits on Dec 19, 2020

  1. Fix newline in README.md

    pkg.go.dev was showing an unnecessary newline in one of the code blocks.
    bl-ue authored Dec 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    00278f1 View commit details
  2. Merge pull request #125 from bl-ue/patch-1

    Fix newline in README.md
    fatih authored Dec 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4cad7da View commit details
  3. Fix typo

    setted -> set
    bl-ue authored Dec 19, 2020

    Verified

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

Commits on Jan 26, 2021

  1. Update README to help with GitHub Actions

    Marwan Sulaiman authored Jan 26, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f5d07ca View commit details

Commits on Jan 30, 2021

  1. Update README.md

    fatih authored Jan 30, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4e3c83a View commit details
  2. Merge pull request #133 from marwan-at-work/patch-1

    Update README to help with GitHub Actions
    fatih authored Jan 30, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d66acdd View commit details

Commits on Jan 31, 2021

  1. Merge pull request #127 from bl-ue/patch-1

    Fix typo
    fatih authored Jan 31, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4d2835f View commit details

Commits on May 13, 2021

  1. Remove vendor/ folder

    I started to like working on projects that **don't** use `vendor/`
    folders anymore. The Go ecosystem has improved a lot over the years.
    With the introduction of the Go module proxy, it's more efficient and
    faster for users as well.
    
    If you're interested, here is a blog post I wrote once that goes into
    more details:
    https://arslan.io/2019/08/02/why-you-should-use-a-go-module-proxy/
    fatih committed May 13, 2021

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    8b8f621 View commit details
  2. Merge pull request #138 from fatih/remove-vendor-folder

    Remove `vendor/` folder
    fatih authored May 13, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4e981ce View commit details
Showing 317 changed files with 7 additions and 235,524 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -18,8 +18,7 @@ jobs:

- name: Test
run: |
go mod tidy -v
go test -mod=vendor -race ./...
go test -race ./...
- name: Build
run: go build -mod=vendor ./...
run: go build ./...
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -134,7 +134,6 @@ definitions. For example suppose you have a CLI app and a `--no-color` bool flag
can easily disable the color output with:

```go

var flagNoColor = flag.Bool("no-color", false, "Disable color output")

if *flagNoColor {
@@ -156,6 +155,10 @@ c.EnableColor()
c.Println("This prints again cyan...")
```

## GitHub Actions

To output color in GitHub Actions (or other CI systems that support ANSI colors), make sure to set `color.NoColor = false` so that it bypasses the check for non-tty output streams.

## Todo

* Save/Return previous values
@@ -170,4 +173,3 @@ c.Println("This prints again cyan...")
## License

The MIT License (MIT) - see [`LICENSE.md`](https://github.com/fatih/color/blob/master/LICENSE.md) for more details

2 changes: 1 addition & 1 deletion color.go
Original file line number Diff line number Diff line change
@@ -387,7 +387,7 @@ func (c *Color) EnableColor() {
}

func (c *Color) isNoColorSet() bool {
// check first if we have user setted action
// check first if we have user set action
if c.noColor != nil {
return *c.noColor
}
15 changes: 0 additions & 15 deletions vendor/github.com/mattn/go-colorable/.travis.yml

This file was deleted.

21 changes: 0 additions & 21 deletions vendor/github.com/mattn/go-colorable/LICENSE

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Loading