Skip to content

Allow non-interactive gist file replacement#5408

Merged
samcoe merged 1 commit intotrunkfrom
gist-replace-file
Apr 6, 2022
Merged

Allow non-interactive gist file replacement#5408
samcoe merged 1 commit intotrunkfrom
gist-replace-file

Conversation

@samcoe
Copy link
Contributor

@samcoe samcoe commented Apr 5, 2022

This small change allows the overwriting of a gist file with a local replacement without any interactivity. The behavior change is that if the user specifies the gist file to edit using the --filename flag then skip showing the continuation prompt of Submit/Cancel/Edit. It follows the same syntax as adding a file:

# adding new file
gh gist edit <gist-id> -a <gist-filename> <local-filename>

# overwriting file
gh gist edit <gist-id> -f <gist-filename> <local-filename>

closes #5198
supersedes #5397

@samcoe samcoe self-assigned this Apr 5, 2022
@samcoe samcoe force-pushed the gist-replace-file branch from 1026b94 to 77e8437 Compare April 5, 2022 19:34
@samcoe samcoe marked this pull request as ready for review April 5, 2022 19:42
@samcoe samcoe requested a review from a team as a code owner April 5, 2022 19:42
@samcoe samcoe requested review from mislav and removed request for a team April 5, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support overwriting objects in a gist programmatically

2 participants