Colorize (highlight) `go build` command output

Related tags

Miscellaneous go
Overview

colorgo

colorgo is a wrapper to go command that colorizes output from go build and go test. screenshot 1

Installation

go get -u github.com/songgao/colorgo

Usage

colorgo build

alias

colorgo changes nothing to sub-commands other than go build. So you can optionally define alias in your shell conf so that go build always prints colorized error message:

bash: ~/.bashrc

alias go=colorgo

fish-shell: ~/.config/fish/config.fish

alias go colorgo

License

BSD 3-Clause License

Issues
  • exit code is always 0

    exit code is always 0

    colorgo does not pass exit code from backend go command and always return 0.

    So next command will always start 'server' even if server.go has syntax error:

    colorgo build server.go && ./server
    
    opened by dmotylev 2
  • Provide LICENSE

    Provide LICENSE

    Please provide a LICENSE file and license information in the files heads so people can adequately use this code/lib without everyone individually contacting you (the author(s)).

    opened by Kissaki 0
  • Enable color-output on windows

    Enable color-output on windows

    Color output on windows needs to be enabled. Otherwise the raw control characters are shown.

    Probably fixes #3

    Sources:

    • https://superuser.com/questions/413073/windows-console-with-ansi-colors-handling
    • https://stackoverflow.com/questions/39627348/ansi-colours-on-windows-10-sort-of-not-working
    opened by JaCoB1123 0
  • OS support notice in README

    OS support notice in README

    Please provide information on which OSes this lib works on. Specifically, such terminal escape characters for colorizing do not work on Windows afaik.

    opened by Kissaki 1
Owner
Song Gao
Song Gao
🏃‍♂️ A new way to execute commands and manipulate command output in Go

??‍♂️ A new way to execute commands and manipulate command output in Go

Sourcegraph 16 Jun 20, 2022
Go library for Common Lisp format style output

format This library has the goal to bring the Common Lisp format directive to Go. This is work-in-progress, see the summary implementation table below

Michael Bohn 7 Jul 7, 2020
A cli for fetching the status and full output of CircleCI jobs.

CCI A cli for fetching the status and full output of CircleCI jobs. Install go install github.com/tmessi/cci/[email protected] Usage cci is designed to have

Timothy Messier 1 Oct 29, 2021
rsync wrapper (or output parser) that pushes metrics to prometheus

rsync-prom An rsync wrapper (or output parser) that pushes metrics to prometheus. This allows you to then build dashboards and alerting for your rsync

Michael Stapelberg 24 May 31, 2022
Generic mapStringInterface tool for extracting of data for CSV output

Generic mapStringInterface tool for extracting of data for CSV output

tbal999 1 Nov 2, 2021
Parse a shell script and output all export declarations in an easy to read format

Find Exports Parse a shell script and output all export declarations in an easy to read format. Usage Example $ findexports ~/.bashrc PATH=$PATH:/usr/

Ilia Choly 1 Jan 13, 2022
A command-line tool that triggers command when the input (doesn't) comes from STDIN in an interval.

conk A command-line tool that triggers command when the input (doesn't) comes from STDIN in an interval. Usage $ conk -h A command-line tool that trig

moznion 3 Apr 29, 2022
James is your butler and helps you to create, build, debug, test and run your Go projects

go-james James is your butler and helps you to create, build, debug, test and run your Go projects. When you often create new apps using Go, it quickl

Pieter Claerhout 50 Mar 8, 2022
go-playground-converter is formatter error response inspiration like express-validator in nodejs build on top go-playground-validator.

Go Playground Converter go-playground-converter is formatter error response inspiration like express-validator in nodejs build on top in go-playground

Restu Wahyu Saputra 8 Jun 20, 2022
Build for all Go-supported platforms by default, disable those which you don't want.

bagop Build for all Go-supported platforms by default, disable those which you don't want. Overview bagop is a simple build tool for Go which tries to

Felix Pojtinger 6 Feb 21, 2022
Analyze the binary outputted by `go build` to get type information etc.

Analyze the binary outputted by go build to get type information etc.

Masaaki Goshima 15 May 20, 2022
Build reply markup keyboards easier than ever.

gotgbot keyboard Build reply markup keyboards easier than ever.

null 4 Feb 24, 2022
Build the brains of a vending machine with golang

Vending Machine Kata In this exercise you will build the brains of a vending machine. It will accept money, make change, maintain inventory, and dispe

Taras Lykhenko 0 Jan 7, 2022
Tanzu Framework provides a set of building blocks to build atop of the Tanzu platform and leverages Carvel packaging

Tanzu Framework provides a set of building blocks to build atop of the Tanzu platform and leverages Carvel packaging and plugins to provide users with a much stronger, more integrated experience than the loose coupling and stand-alone commands of the previous generation of tools.

VMware Tanzu 164 Jun 23, 2022
Package buildinfo provides basic building blocks and instructions to easily add build and release information to your app.

Package buildinfo provides basic building blocks and instructions to easily add build and release information to your app. This is done by replacing variables in main during build with ldflags.

null 1 Nov 14, 2021
This repository provides various utilities to help you build your NFT collection!

Attention! A powerful computer may be required! About This repository provides various utilities to help you build your NFT collection: Generate image

Igor Savenko 4 May 18, 2022
[Building]Use Go & Vue3 to build an easy blog

Go + Vue3 Study 环境安装 本地环境:Go 1.17 后端框架:Gin 注意Go在使用Go Module的话需要使用修改Go的代理 首先查看Go相关的环境变量 go env 修改Go代理 go env -w Go111MODULE=on go env -w GOPROXY=https:

Random_Chen 0 Jan 25, 2022
A command line tool to generate sequence diagrams

goseq - text based sequence diagrams A small command line utility used to generate UML sequence diagrams from a text-base definition file. Inspired by

Leon Mika 179 Jun 22, 2022
Simple plugin to enable the /flip command inside of Mattermost

Plugin Starter Template This plugin serves as a starting point for writing a Mattermost plugin. Feel free to base your own plugin off this repository.

null 0 Nov 4, 2021