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
31209bcf89
Replace SurveyAskOne with Prompter
2023-06-05 22:48:21 +05:30
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
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
nate smith
2f19fa792f
maint: clean up some errors
2022-01-24 17:34:21 -06:00
nate smith
de4e37ed75
Merge remote-tracking branch 'origin/trunk' into feat/gist-edit
2022-01-24 17:34:09 -06:00
Nate Smith
f950637b0b
Merge pull request #4738 from SteadBytes/gist-edit-description
...
Support editing gist description
2022-01-18 09:34:22 -06:00
Mislav Marohnić
e43cb2b880
Port more legacy stubs to the new ask stubber
2022-01-14 19:34:15 +01:00
Ben Steadman
f30e76aab8
Support editing gist description
...
Add a --desc flag to gh gist edit to support editing gist
descriptions. This flag can be used in combination with the other gist
editing flags to edit the description whilst also adding/editing files.
Signed-off-by: Ben Steadman <steadmanben1@gmail.com>
2021-11-16 20:18:53 +00:00
tdakkota
ab668e8419
gist edit: add way to edit files from different sources
...
This commit adds an optional parameter to set source for editing or adding files to gist.
If parameter is equal to "-" then stdin will be used.
2021-11-01 10:28:30 +03:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Nate Smith
2fbc037658
Merge pull request #3042 from g14a/bug/gist-binary-files
...
Remove functionality to add, view and edit binary files in gists
2021-03-04 13:01:54 -06:00
Gowtham Munukutla
973fbb0925
Disallow operating on binary files in gist
2021-03-02 14:52:44 +01:00
Mislav Marohnić
dd34cae112
Merge remote-tracking branch 'origin' into cancel-error-status
2021-03-02 13:52:07 +01: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
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
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
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
05e45e3863
Feature of adding new files to an existing Github gist
2021-02-17 11:27:57 +05:30
Cristian Dominguez
c6b9e8454f
Update gist edit tests
2020-09-30 12:35:22 -03:00
yuuji.yaginuma
943dcef478
Don't send a request when the contents haven't changed
...
By doing this, the command will finish faster if the user canceled
the editing.
2020-09-19 15:25:07 +09:00
vilmibm
0d45dd82f3
finish edit tests
2020-09-15 17:29:54 -05:00
vilmibm
15cf786c5a
wip tests
2020-09-15 17:20:36 -05:00
vilmibm
62f54f0f02
start on edit tests
2020-09-15 16:18:26 -05:00