Commit graph

70 commits

Author SHA1 Message Date
Sam
36949e263a Internalize doc generation from Cobra 2020-10-22 09:38:51 +00:00
Sam
9d6f5a8e75 Update spf13/cobra to v1.1.1 2020-10-20 09:02:50 +00:00
Sam Coe
f132161cc4
Upgrade termenv 2020-09-28 10:57:25 +02:00
Sam Coe
ed4075517c
Check for terminal background color before starting pager 2020-09-24 13:06:28 +02:00
2017A7PS0125G
5b413da745 Emoji parsing in Readme content 2020-09-19 00:24:22 +05:30
Sam Coe
e5466c0411 Improve string display width calculation 2020-09-11 11:56:54 +02:00
Mislav Marohnić
8289dcb55e bump yaml.v3 2020-09-09 17:53:26 +02:00
Mislav Marohnić
640450de6f bump golang.org/x/crypto 2020-09-09 17:53:10 +02:00
Mislav Marohnić
c00fa2d42b bump shurcooL/githubv4 2020-09-09 17:52:43 +02:00
Mislav Marohnić
de1e9e848b bump mgutz/ansi 2020-09-09 17:51:50 +02:00
Mislav Marohnić
2eebae1e99 bump hashicorp/go-version to v1.2.1 2020-09-09 17:51:14 +02:00
Mislav Marohnić
b52b669f6a bump google/go-cmp to v0.5.2 2020-09-09 17:51:02 +02:00
Mislav Marohnić
03e4284798 bump mattn/go-colorable to v0.1.7 2020-09-09 17:50:46 +02:00
Mislav Marohnić
03667e44d0 bump stretchr/testify to v1.6.1 2020-09-09 17:50:21 +02:00
Mislav Marohnić
8dfc8cc172 bump henvic/httpretty to v0.0.6 2020-09-09 17:49:57 +02:00
Mislav Marohnić
29172e1391 bump AlecAivazis/survey to v2.1.1 2020-09-09 17:49:19 +02:00
Mislav Marohnić
b93c896561 Upgrade text/width package 2020-09-02 21:01:39 +02:00
Jesse Millar
90f04d4864 Enable custom color themes with the GLAMOUR_STYLE environment variable 2020-07-28 15:23:48 +02:00
Mislav Marohnić
cbcc778d20 Adapt markdown rendering for light terminal backgrounds
Bonus: disallows trying to first read `notty` and `dark` style files from disk
2020-07-21 13:16:42 +02:00
Mislav Marohnić
f4c4ce0b0a Add names to GraphQL queries made over shurcooL adapter 2020-07-07 17:53:40 +02:00
Mislav Marohnić
0dfc0f733f Fix indentation of Example blocks
In HTML, `Example` blocks seem to be already injected in fenced Markdown
blocks `` ``` ``, so they don't need to be especially intented.
2020-06-11 20:31:37 +02:00
Mislav Marohnić
61ddd67f20 Bump yaml.v3 2020-05-28 15:23:41 +02:00
Mislav Marohnić
26466f8a0d Bump net 2020-05-28 15:23:23 +02:00
Mislav Marohnić
4abb1a9778 Bump crypto 2020-05-28 15:23:08 +02:00
Mislav Marohnić
bc575fd50c Bump githubv4 2020-05-28 15:22:44 +02:00
Mislav Marohnić
755c4c315b Bump go-runewidth 2020-05-28 15:22:18 +02:00
Mislav Marohnić
8cb714f2fc Bump httpretty 2020-05-28 15:21:55 +02:00
Mislav Marohnić
55c9537c68 Bump go-cmp 2020-05-28 15:21:28 +02:00
Mislav Marohnić
c831f2623b Bump spinner 2020-05-28 15:20:23 +02:00
Mislav Marohnić
eab5af9449 Merge remote-tracking branch 'origin' into cobra1.0 2020-05-28 15:15:20 +02:00
Mislav Marohnić
bef62faaea Make NewCmdApi testable 2020-05-20 15:21:35 +02:00
Mislav Marohnić
e39894d4a0 Update to Cobra 1.0.0 2020-05-13 12:49:52 +02:00
Mislav Marohnić
0bc631179b Update spinner library to avoid race condition after Stop() 2020-04-13 14:07:16 +02:00
Toshiya Doi
0095fe9a13 Merge branch 'master' into view-the-current-state 2020-04-02 23:52:41 +09:00
Mislav Marohnić
8460609181 repo clone: automatically set up "upstream" remote for forks 2020-03-31 15:32:52 +02:00
Toshiya Doi
7d42f46cda Merge branch 'master' into view-the-current-state 2020-03-25 22:46:12 +09:00
Christian Muehlhaeuser
d2fda98e16
Bump glamour dependency
This fixes #647 by not retrieving the terminal's background color on init.
2020-03-20 18:51:17 +01:00
Toshiya Doi
0cfa4be86a Add tests for utilities of PR/issue state format 2020-03-18 07:30:28 +09:00
Christian Muehlhaeuser
0d6e347155
Bump glamour dependency
This indirectly also updates the chroma syntax highlighting package,
which fixes a rendering bug for CRLF line endings, which we
encountered in cli. We can therefore remove our internal work-around.
2020-03-04 15:03:04 +01:00
Nate Smith
3d7733870e
Merge branch 'master' into repo-fork 2020-03-03 15:40:54 -06:00
Mislav Marohnić
6b286072dd Bump dependencies 2020-03-03 18:12:30 +01:00
vilmibm
1217bfce09 add spinner helper 2020-02-26 11:41:54 -06:00
Henrique Vicente
e7c88d0fb1
impr(verbose): using package httpretty to log requests on DEBUG. 2020-02-21 02:46:18 +01:00
Mislav Marohnić
4c3e498021 Fix column alignment and truncation for Eastern Asian languages
- Ensure that text is never truncated mid-character, which would result
  in garbled text

- Ensure that columns in `issue/pr list` output align properly
2020-02-20 18:52:17 +01:00
Mislav Marohnić
619c9d9495 Bump dependencies
go get -u -t ./...
    go get github.com/charmbracelet/glamour@8d4e3f0
    go mod tidy
2020-02-20 12:51:32 +01:00
Nicolas Martin
950144945f Use glamour as markdown rendering backend for issue & pr previews
glamour uses the CommonMark compliant Goldmark markdown parser instead of
go-termd which is based on Blackfriday.
2020-02-06 00:20:16 +01:00
Mislav Marohnić
a710893fc1 Rename to cli/cli 2020-01-24 16:08:52 +01:00
Mislav Marohnić
9122bc181c Migrate away from errors.Wrap()
Turns out the "standard" way of wrapping errors in Go is via
`fmt.Errorf("%w")`, which doesn't require an external package and also allows a
finer control of error sentence formatting.
2020-01-23 13:19:28 +01:00
vilmibm
daf02ff3ec de-inline go-termd 2020-01-13 16:10:22 -06:00
vilmibm
e42b097629 inline a markdown rendering lib
This commit inlines https://github.com/tj/go-termd for a few reasons:

- off the shelf it relies on a broken, erroneously released version of
blackfriday (a markdown parser)
- based on discussion with ampinsk, there are some tweaks we'd like to
make to markdown rendering beyond what the library exposes now
- it's a small library (around 300 sloc)

This commit only:

- messes with go.mod to fix the blackfriday issues
- adds an inclusion note
- renames the package
2020-01-10 14:44:51 -06:00