[PR #634] [CLOSED] feat: Make asciinema work with shebangs #1165

Closed
opened 2026-03-15 11:22:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/asciinema/asciinema/pull/634
Author: @iulian-birlica
Created: 5/23/2024
Status: Closed

Base: developHead: feat/shebang


📝 Commits (1)

  • b912ed9 feat: Make asciinema work with shebangs

📊 Changes

2 files changed (+6 additions, -2 deletions)

View changed files

📝 src/asciicast.rs (+5 -1)
📝 src/asciicast/v2.rs (+1 -1)

📄 Description

I would like to explore the idea of having asciinema working with shebangs, thus having asciicasts work by uttering:

./file.cast

I wanted to have some example code, in order to start the discussion.

The file would have to be made executable after it is created. I think this should be an argument to asciinema rec, something like -e -- make executable cast.

I think supporting arguments like -s speed and the rest is technically doable, but may require some command-line magic and maybe some changes to asciinema play, or even an entire new play mode.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/asciinema/asciinema/pull/634 **Author:** [@iulian-birlica](https://github.com/iulian-birlica) **Created:** 5/23/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `feat/shebang` --- ### 📝 Commits (1) - [`b912ed9`](https://github.com/asciinema/asciinema/commit/b912ed9acc1c9b49d2d2cebf3f30633b8b337bfa) feat: Make asciinema work with shebangs ### 📊 Changes **2 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/asciicast.rs` (+5 -1) 📝 `src/asciicast/v2.rs` (+1 -1) </details> ### 📄 Description I would like to explore the idea of having asciinema working with shebangs, thus having asciicasts work by uttering: ```bash ./file.cast ``` I wanted to have some example code, in order to start the discussion. The file would have to be made executable after it is created. I think this should be an argument to `asciinema rec`, something like `-e -- make executable cast`. I think supporting arguments like `-s speed` and the rest is technically doable, but may require some command-line magic and maybe some changes to `asciinema play`, or even an entire new `play` mode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 11:22:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#1165
No description provided.