KEMBAR78
`gh gist delete` does not prompt for a gist to delete or prompt for confirmation before deletion · Issue #10073 · cli/cli · GitHub
Skip to content

gh gist delete does not prompt for a gist to delete or prompt for confirmation before deletion #10073

@BagToad

Description

@BagToad

Describe the bug

  • gh gist delete doesn't prompt for a gist to delete. This seems like it might be an oversight when compared to the behavior of other gh gist and gh <some-command> delete operations.
  • gh gist delete should prompt for a gist to delete and confirm the selection to delete.
  • gh gist delete also does not currently support --yes for non-interactive confirmation - perhaps it should?

Steps to reproduce the behavior

gh gist delete

Expected vs actual behavior

Expected

❯ gh gist delete
? Select a gist to delete [Use arrows to move, type to filter]
> test.md test gist about 4 days ago
  draft.md  about 2 months ago
? Are you sure you want to delete gist test.md (Y/n)

Actual

gh gist delete
❯ gh gist delete
cannot delete: gist argument required

Usage:  gh gist delete {<id> | <url>} [flags]

Notes

Discovered in #10042

Metadata

Metadata

Assignees

Labels

enhancementa request to improve CLIgh-gistrelating to the gh gist commandhelp wantedContributions welcome

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions