mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[PR #576] [MERGED] Require explicit upload choice when recording without file arg #1130
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#1130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/asciinema/asciinema/pull/576
Author: @ku1ik
Created: 10/18/2023
Status: ✅ Merged
Merged: 10/23/2023
Merged by: @ku1ik
Base:
develop← Head:better-upload-prompt📝 Commits (1)
c86035dRequire explicit upload confirmation when recording without file argument📊 Changes
2 files changed (+32 additions, -13 deletions)
View changed files
📝
asciinema/commands/command.py(+4 -0)📝
asciinema/commands/record.py(+28 -13)📄 Description
This changes the prompt for upload from simply accepting
<enter>key as upload confirmation to requiring explicitly typingu<enter>. Also, lets saving locally in tmp directory (what was previously achieved with<ctrl-c>, and adds discard option too.If none of
s,u,dare entered (which includes just hitting enter) then the prompt is displayed again, until valid choice is made.<ctrl-c>works as it did in previous versions, which is equivalent tos(save).Discussed in:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.