Commit graph

32 commits

Author SHA1 Message Date
Mislav Marohnić
44ae7ae3cf
Merge pull request #3279 from cli/browser-refactor
Pass web browser to each individual command
2021-03-30 16:54:59 +02:00
Sam
9ec1e21d4c
Default to GHES host if only GHES is authenticated (#3286) 2021-03-30 16:51:00 +02:00
Mislav Marohnić
111e8dbcf2 Pass web browser to each individual command
This removes sensitivity to the BROWSER environment variable in tests
and makes it easier to verify the URL that the browser was invoked with
without having to stub sub-processes.
2021-03-19 21:22:37 +01:00
Nate Smith
2ab073d599
Refactor use of glamour to allow style overrides (#3243)
* Refactor use of glamour to allow style overrides

* leave the things the way they were and just expose the ability to set overrides
2021-03-19 16:29:32 +00:00
Mislav Marohnić
066ba54549 Sort gist files case-insensitively 2021-03-02 14:53:19 +01:00
Mislav Marohnić
77d9051d0e Simplify looking up binary types in gist 2021-03-02 14:53:10 +01:00
Gowtham Munukutla
973fbb0925 Disallow operating on binary files in gist 2021-03-02 14:52:44 +01:00
vilmibm
39718cd5ca just hide empty descriptions 2021-03-01 16:07:04 -06:00
vilmibm
e100b15acb some text tweaks 2021-03-01 16:03:48 -06:00
boonhong
5403a37601 Add interactive select in gist view 2021-02-24 18:38:05 +08:00
Mislav Marohnić
622317ee89 Tweak gist docs 2021-02-03 22:39:58 +01:00
Ruslan Gilyazetdinov
907524f459 add --files to list filenames in gist (#2885) 2021-02-03 22:39:58 +01:00
Mislav Marohnić
3f7b1387e5 Improve gist view rendering
- Separate out logic to render a single file
- Render directly to stdout instead of to string slice
- Normalize whitespace between files; ensure no excessive trailing whitespace
- Add terminal pager support
- Sentence-case for flags
2021-02-02 14:21:48 +01:00
Ruslan Gilyazetdinov
bf4370bc3a linter fixes 2021-02-02 10:56:29 +03:00
Ruslan Gilyazetdinov
232dc7b7fa change condition for single file, remove empty lines in single file mode 2021-02-02 10:54:07 +03:00
Ruslan Gilyazetdinov
8e86129e2e remove gist description from single file raw view (#2886) 2021-02-01 18:49:26 +03:00
Cristian Dominguez
55c717d3d3 Print friendly error when 'gh gist <command>' is missing required argument 2020-12-21 10:01:30 -03:00
Cristian Dominguez
fa8674386b
Render links as absolute URLs in repo view (#2363)
Co-authored-by: Cristian Dominguez <cristiand391@users.noreply.github.com>
2020-11-11 13:13:19 +01:00
Sam Coe
f0d4fbf84f
Address PR comments around style and naming 2020-09-24 19:27:29 +02:00
Sam Coe
ed4075517c
Check for terminal background color before starting pager 2020-09-24 13:06:28 +02:00
Cristian Dominguez
a7a90b3a4b Move gist URL tests to its own file 2020-09-21 21:35:07 -03:00
Cristian Dominguez
55a8f3d8ca Make gh gist view and edit commands reuse logic for id extraction 2020-09-21 21:28:04 -03:00
Cristian Dominguez
d685d666b2 Set gist ID by default on all tests 2020-09-21 12:11:08 -03:00
Cristian Dominguez
ef9b75e1f6 Add tests for gist URL check 2020-09-19 18:50:07 -03:00
Cristian Dominguez
2af136cc78 Return error if it's an invalid URL 2020-09-19 18:48:00 -03:00
Cristian Dominguez
0b8c964a41 Fix gist ID extraction from url 2020-09-17 23:48:25 -03:00
vilmibm
ada2c56606 test gist view 2020-09-15 16:05:30 -05:00
vilmibm
f124b426fe tweak gist view; support --filename 2020-09-15 14:56:13 -05:00
vilmibm
dc345a9f73 support --web for gist view 2020-09-14 10:33:29 -05:00
vilmibm
0d3056d9a7 gh gist edit 2020-09-14 10:33:29 -05:00
vilmibm
39b6ec8aec share gist getting 2020-09-14 10:33:29 -05:00
vilmibm
b17124157c start on gist view 2020-09-14 10:33:29 -05:00