Граф коммитов

16 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 9f9bf6c463 Fix some Go linting errors 2020-11-17 11:38:14 +01:00
Mislav Marohnić f1170f982c Fix compiling on Go 1.15
Fixes https://github.com/github/hub/issues/2616
2020-11-16 17:28:36 +01:00
kfcampbell 425a75f368 Lint md2roff-bin, ui, utils dirs. 2020-04-12 17:31:50 -07:00
Christian Muehlhaeuser f0c3ce9fb3
Simplify code
- Use bytes.Equal instead of bytes.Compare
- Use time.Since instead of manual timestamp subtracting
- Use sort.Strings instead of sort.StringSlice
- No need to specify the len of the slice
2019-07-23 09:28:32 +02:00
Andrew Janke 116f08f1f9 ui Printf functions: handle errors by dying 2018-12-22 12:30:38 -05:00
Mislav Marohnić f8feb335bc Don't choke on literal `%` output from `--format` use
In general, avoid using Printf without a static format string.
2018-12-20 18:01:20 +01:00
Josh Soref e540db3926 spelling: indicate 2017-11-08 02:38:45 +00:00
Pascal Corpet c142db3f1e Use formatter when listing issues. 2016-05-11 14:39:46 +02:00
Pascal Corpet eafcc3833e Add more colors 2016-02-28 20:28:32 +01:00
Pascal Corpet 87f7e1419e Split huge test in smaller ones. 2016-02-28 20:28:32 +01:00
Pascal Corpet 0746859141 Add padding in the expander. 2016-02-28 20:28:32 +01:00
Pascal Corpet 2a6c091e30 First version of a formatter that works like `git log --format`. 2016-02-28 20:28:32 +01:00
Mislav Marohnić 1b862e3388 Switch from godep & rewriting import paths to GO15VENDOREXPERIMENT 2016-01-20 14:46:44 +11:00
Mislav Marohnić 64e83cef20 Move `IsTerminal()` function to "ui" package 2015-10-31 01:45:20 +01:00
Jingwen Owen Ou 385b41fcdd Colorized Windows console
Introduce github.com/mattn/go-colorable to solve the console color
issues on Windows
2015-06-12 12:56:52 -04:00
Jingwen Owen Ou 177640dbd4 Extract logic of printing out to console
Introduce a `console` package which encapsulates logic of printing out
to console. This provides flexibility of discarding output in tests.
It also allows us to unify format of printing to console (if we want to).

This fixes #801.
2015-02-20 13:19:24 -08:00