Mislav Marohnić
dd34cae112
Merge remote-tracking branch 'origin' into cancel-error-status
2021-03-02 13:52:07 +01:00
Mislav Marohnić
2ebdde1ddd
Exit with status code "2" on user cancellation errors
...
This also stops printing "interrupt" after Ctrl-C is pressed.
2021-03-02 13:48:44 +01:00
vilmibm
39718cd5ca
just hide empty descriptions
2021-03-01 16:07:04 -06:00
vilmibm
00e8c07021
Merge remote-tracking branch 'origin/trunk' into interactive-gist-view
2021-03-01 16:05:26 -06:00
vilmibm
e100b15acb
some text tweaks
2021-03-01 16:03:48 -06:00
Mislav Marohnić
8f96e406ac
Improve error handling and avoid writing confirmation to stdout
...
Right now the `gist edit` command doesn't write anything to stdout, so
let's keep it that way until we want to intentionally provide some
feedback in the terminal.
2021-02-27 12:23:18 +01:00
Mislav Marohnić
406d7eee45
💅 cleanup gist edit -a feature
2021-02-27 12:07:35 +01:00
Gowtham Munukutla
7fd0634a24
rebase with trunk
2021-02-25 14:47:26 +05:30
boonhong
0833bdc6b4
Merge branch 'trunk' of github.com:cli/cli into interactive-gist-view
2021-02-24 23:32:23 +08:00
boonhong
5403a37601
Add interactive select in gist view
2021-02-24 18:38:05 +08:00
Gowtham Munukutla
61eb7eeeab
Add msg in gist delete
2021-02-24 15:53:07 +05:30
Gowtham Munukutla
56ead91702
Add helper function to validate exact args in cmdutil
2021-02-24 15:49:40 +05:30
Gowtham Munukutla
3e5d5a23c0
add fixturefile const in tests
2021-02-24 10:22:56 +05:30
Gowtham Munukutla
d4e14beb57
remove unwanted tests and unwanted functionality
2021-02-24 10:14:31 +05:30
Gowtham Munukutla
a6fa14866b
updating tests WIP
2021-02-24 09:44:11 +05:30
Gowtham Munukutla
cbf8a0d964
Accept only one argument when deleting a gist
2021-02-23 20:12:26 +05:30
Gowtham Munukutla
faffc4de95
Add go fmt to pass ci/cd
2021-02-19 12:05:20 +05:30
Gowtham Munukutla
4ed10140ab
Resolved PR review comments and test cases
2021-02-19 12:02:17 +05:30
Gowtham Munukutla
882bd1adb1
add go lint to pass checks
2021-02-18 22:39:56 +05:30
Gowtham Munukutla
a4a194011f
gofmt
2021-02-18 19:18:49 +05:30
Gowtham Munukutla
9a4fd0d706
Remove unwanted prompt for user. Unwanted test as well
2021-02-18 19:17:42 +05:30
Gowtham Munukutla
bff8b3007a
Add test cases and improve errors with color schemes
2021-02-18 18:45:43 +05:30
Gowtham Munukutla
2983887458
Add files by absolute path to gist
2021-02-17 20:39:43 +05:30
Gowtham Munukutla
037343c5c2
Add existing files in the current wd to gist
2021-02-17 19:20:43 +05:30
Gowtham Munukutla
05e45e3863
Feature of adding new files to an existing Github gist
2021-02-17 11:27:57 +05:30
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
Mislav Marohnić
f46bab256c
Rename to SuccessIconWithColor
2021-01-25 14:56:39 +01:00
Mislav Marohnić
96fa6e7830
Merge remote-tracking branch 'origin' into success-icon-consistency
2021-01-22 23:56:54 +01:00
Mislav Marohnić
23d68705bc
Match color of the success icon with the end state of the record
2021-01-22 23:55:33 +01:00
Mislav Marohnić
06cf2c9f81
Merge remote-tracking branch 'origin' into cmd-stub-new
2021-01-22 16:31:29 +01:00
Nate Smith
3a9e47bf1b
Merge pull request #2664 from cristiand391/gist-friendly-error
...
Print friendly error when 'gh gist <command>' is missing required argument
2021-01-21 14:41:03 -08:00
Mislav Marohnić
c63acf6728
Migrate to new cmd stubber in misc. tests
2021-01-18 22:42:01 +01:00
Cristian Dominguez
ce151420f3
Migrate legacy tests
2021-01-11 21:07:19 -03:00
Cristian Dominguez
55c717d3d3
Print friendly error when 'gh gist <command>' is missing required argument
2020-12-21 10:01:30 -03:00
Nate Smith
230441e1a5
Merge pull request #2222 from Crunch09/issue-2115
...
add `gist clone` command
2020-12-18 13:07:44 -08:00
Florian Thomas
326fe371c6
add gist clone command
...
This adds the ability to clone a gist.
Usage:
```sh
$ gh gist clone 5b0e0062eb8e9654adad7bb1d81cc75f
$ gh gist clone https://gist.github.com/OWNER/5b0e0062eb8e9654adad7bb1d81cc75f
```
This closes #2115 .
2020-12-07 22:32:09 +00:00
vilmibm
5309a2089a
implement gh secret create and gh secret list
2020-12-04 16:47:23 -08:00
vilmibm
00617216b8
fix missing import
2020-11-16 14:03:52 -08:00
Christopher Oswald
0bb44c9ced
Support for --web when using gist create ( #2263 )
...
* Support for --web when using gist create
Proposal to close #2071
I have not worked with Go prior to this so please smite me down with the
wisdom of a million Golang gods if I'm doing something terribly wrong.
I also added a test to gist/create for the added web arg.
Pretty much referenced the implementation from pr/create.
* Fix for Tests / build (windows-latest)
I believe this fixes it as it stopped failing on a local vm. Otherwise I
will try and tackle it tomorrow.
* minor cleanup
Co-authored-by: vilmibm <vilmibm@github.com>
2020-11-16 16:01:30 -06:00
Alex Johnson
99574f85a3
Add a command to delete a gist ( #2265 )
...
* Add a command to delete a gist
* minor cleanup
Co-authored-by: vilmibm <vilmibm@github.com>
2020-11-16 15:47:55 -06:00
Cristian Dominguez
867f38970f
Fix USAGE help for some commands
2020-11-13 10:10:53 -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
vilmibm
46a1598c19
favor SuccessIcon
2020-11-02 11:13:28 -08:00
vilmibm
a2aa154794
port entirely to ColorScheme
2020-10-29 12:37:45 -07:00
Nate Smith
14a5e00c4a
Merge pull request #2034 from cristiand391/check-gist-ownership
...
Check gist ownership before editing
2020-10-05 16:20:34 -05:00