Skip to content

Commit

Permalink
feat(dgw): support .cast terminal recording files (#900)
Browse files Browse the repository at this point in the history
The .cast extension is used for "asciicast" files, i.e.: asciinema cast files.
This is a widely used terminal playback format.

Co-authored-by: Benoît Cortier <bcortier@proton.me>
  • Loading branch information
irvingoujAtDevolution and CBenoit authored Jun 26, 2024
1 parent 799e518 commit d1f7559
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devolutions-gateway/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,16 @@ pub enum RecordingFileType {
WebM,
/// Terminal Playback
TRP,
/// asciinema cast for terminal playback
Asciicast,
}

impl RecordingFileType {
pub const fn as_str(self) -> &'static str {
match self {
RecordingFileType::WebM => "webm",
RecordingFileType::TRP => "trp",
RecordingFileType::Asciicast => "cast",
}
}
}
Expand Down

0 comments on commit d1f7559

Please sign in to comment.