Zack Sloane
b6dadfa7fb
test update, more consistent default value display
2024-01-08 23:23:24 -05:00
Yukai Chou
ba585149c3
Leftovers
2023-11-23 07:12:47 +08:00
Yukai Chou
21bf1babdf
Proof-reading
2023-11-17 02:04:35 +08:00
Yukai Chou
b70c28ba20
Misc docs improvements
2023-11-17 01:32:28 +08:00
Yukai Chou
896101678f
Wrap cli commands in backticks uniformly
2023-11-17 01:32:00 +08:00
Yukai Chou
17d336e005
Wrap cli flags in backticks uniformly
2023-11-16 22:54:27 +08:00
Sam Coe
7924878315
Fix git protocol and refactor Config interface ( #8246 )
2023-10-27 15:42:05 +02:00
Heath Stewart
7738b6187c
Add headers to all tables ( #8157 )
2023-10-20 11:20:02 +02:00
William Martin
6dc04bb1e2
Remove GetOrDefault uses in favour of GitProtocol
2023-10-19 12:57:19 +02:00
Sean Bright
6f99fd8442
Always show created gist privacy status. ( #7645 )
2023-07-06 06:22:50 +00:00
William Martin
491e9e8e58
Ensure gist edit request body matches desired schema ( #7635 )
...
* Ensure gist edit request body matches desired schema
* Immediately transform gist to gistToUpdate in edit flow
* Remove maps package and change to NewFilename
2023-07-03 13:33:49 +09:00
Kousik Mitra
baba894997
Add option to remove file from gist ( #7560 )
2023-06-23 14:08:21 +02:00
Kousik Mitra
895487127c
Remove unused linter flag
2023-06-05 22:54:35 +05:30
Kousik Mitra
31209bcf89
Replace SurveyAskOne with Prompter
2023-06-05 22:48:21 +05:30
Kousik Mitra
9ccd098eb0
Add gist selector option to gist edit command
2023-06-05 22:07:04 +05:30
Wing-Kam Wong
c6454064a4
refactor: revise errMsg in rename_test.go
2023-03-23 11:58:13 +08:00
Wing-Kam Wong
6854f0f63c
refactor: remove unnecessary validations
2023-03-23 11:58:00 +08:00
Wing-Kam Wong
951d1aaa1f
refactor: use ExactArgs instead of MaximumNArgs
2023-03-23 11:52:14 +08:00
Wing-Kam Wong
5699daef27
refactor: change from [] to {}
2023-03-23 11:51:55 +08:00
Wing-Kam Wong
3b27e068f2
feat: gist rename test
2023-03-22 00:11:40 +08:00
Wing-Kam Wong
b705ea94a0
fix: revise test cases in TestNewCmdRename in rename_test.go
2023-03-19 21:31:58 +08:00
Wing-Kam Wong
9e1d34f473
feat: add FlagErrorf for missing flag cases
2023-03-19 21:31:23 +08:00
Wing-Kam Wong
eb2da16b60
feat: TestNewCmdRename for gist rename
2023-03-19 19:43:34 +08:00
Wing-Kam Wong
daf4922176
refactor: remove unused code
2023-03-19 17:28:02 +08:00
Wing-Kam Wong
54de75db82
feat: add gist rename logic
2023-03-18 01:16:59 +08:00
Wing-Kam Wong
f9d3b71c3b
feat: add gistRenameCmd to gist.go
2023-03-17 22:35:37 +08:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00:00
Mislav Marohnić
a55dd656f3
Merge remote-tracking branch 'origin' into cobra-update
2022-12-20 17:15:25 +01:00
Sam Coe
98ab1f2587
Authenticate network git commands ( #6541 )
2022-11-15 13:14:37 +02:00
Mislav Marohnić
b12ea845ef
Migrate to the new Cobra command grouping feature
2022-11-09 16:42:13 +01:00
Sam Coe
4294ee14a1
revert revert 57fbe4f317 ( #6474 )
2022-10-20 12:17:20 +00:00
Sam Coe
2cefb9fa59
Fix pr create regression ( #6472 )
...
* Revert "Refactor to use new git client (#6447 )"
This reverts commit 57fbe4f317 .
* Fix pr create regression
2022-10-20 12:46:23 +03:00
Sam Coe
57fbe4f317
Refactor to use new git client ( #6447 )
2022-10-19 21:11:36 +03:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh ( #6346 )
2022-10-17 15:15:39 +02:00
Mislav Marohnić
27294c197f
gist clone: fix clone URL for GHE gists
...
Use `HOSTNAME/gist/ID` instead of `gist.HOSTNAME/ID` as clone URL for
Enterprise since it's not guaranteed that the `gist.` subdomain is
configured for a GHE instance.
2022-09-15 18:25:16 +02:00
Sam Coe
e7102f9d84
Migrate to go-gh text package ( #6236 )
2022-09-14 09:23:55 +04:00
Mark Woods
e876b22963
Change markdown wrap limit match terminal width ( #6016 )
2022-09-01 07:36:25 +00:00
Sam Coe
45f1a71c8b
Remove all direct calls to shurcool-graphql
2022-08-18 21:40:41 +03:00
Sam Coe
6a8deb1f5a
Integrate latest go-gh packages ( #6084 )
2022-08-18 09:04:13 +03:00
Nate Smith
200516beb8
Merge pull request #5985 from icen1/colour-privacy-gist
...
[Issue:#5975] Added gist privacy type to terminal output
2022-08-16 15:26:08 -05:00
vilmibm
41385477c3
fix linting
2022-07-27 14:15:27 -05:00
vilmibm
d5334f4115
Revert "update linter checks"
...
This reverts commit 40ecb8c188 .
2022-07-27 13:30:41 -05:00
vilmibm
40ecb8c188
update linter checks
2022-07-26 16:06:52 -05:00
Icen
7f2bbf20cc
Changed the create_test.go accordingly
2022-07-22 21:18:38 +01:00
Icen
df2b19567b
Added whether the gist is public or secret. Added the colour red to public and the colour green to secret
2022-07-22 20:58:29 +01:00
Sam Coe
cacff4ad6d
Use go-gh config package ( #5771 )
2022-06-23 11:50:04 +00:00
Mislav Marohnić
2139e763fb
Write Cobra deprecation messages to stderr
...
We used to do the equivalent of `rootCmd.SetOut(os.Stdout)` because we
thought that Cobra's "Out" stream represents standard output. However,
upon closer inspection it turns out that this is Cobra's stream for
usage errors and deprecation warnings, and those we want written to
stderr as well. It is not clear to me why Cobra maintains a distinction
between "Out" and "Err" streams since both seem to go to sdterr by
default.
This change also ceases our usage of `command.Print()` functions in
favor of explicitly writing to `IOStreams.Out/ErrOut`.
2022-05-23 20:23:42 +02:00
ffalor
7d0a7f98e1
Add progress indicator to gist create ( #5526 )
2022-04-27 08:17:17 +00:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Roshan Padaki
13342cb272
Don't error on list commands when no results found ( #5479 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-25 17:55:52 +00:00