Commit Graph

1455 Commits

Author SHA1 Message Date
Marcin Kulik
dd6b9a3008 Fix loading of asciicast v1 2025-05-06 18:09:01 +02:00
Marcin Kulik
e4b888178f Improve arg/var naming consistency 2025-05-06 17:34:12 +02:00
Marcin Kulik
d6cc282ed8 Support "-" as stdin/stdout shortcut filename for input/output 2025-05-06 16:33:05 +02:00
Marcin Kulik
8c589baf67 More tweaks to rec/stream/session cmdline options 2025-05-06 14:28:41 +02:00
Marcin Kulik
1a673358a7 nixfmt 2025-05-05 21:39:23 +02:00
Marcin Kulik
ee074c44d1 Add bashInteractive to nix dev shell 2025-05-05 21:35:30 +02:00
Marcin Kulik
b340d463c4 Use strings for flake input URLs 2025-05-05 21:20:22 +02:00
Marcin Kulik
2115303df2 Remove the --filename option for rec and session commands
Most of it can be done by using variable interpolation in a shell e.g.:

  asciinema rec "${HOSTNAME}-${USER}-$(date +%s)-$$.cast"
2025-05-04 22:18:33 +02:00
Marcin Kulik
0dee9c5c6f Avoid duplicate term type in the asciicast v3 header 2025-05-04 22:18:33 +02:00
Marcin Kulik
7beded912d Downgrade some deps so it builds on MSRV 2025-05-04 14:04:50 +02:00
Marcin Kulik
b7e7d30f81 Remove redundant use 2025-05-04 14:04:33 +02:00
Marcin Kulik
01b506b782 Upgrade deps 2025-05-04 13:53:09 +02:00
Marcin Kulik
10a290f8d6 Upgrade clap 2025-05-04 13:53:09 +02:00
Marcin Kulik
588c860ee1 Make option names more clear 2025-05-04 13:53:09 +02:00
Marcin Kulik
f0f74e92f5 Move global options to the end of the list in the help message 2025-05-04 13:46:59 +02:00
Marcin Kulik
3c1de97251 Add test for loading asciicast v3 2025-05-03 15:58:52 +02:00
Marcin Kulik
07af5ec3f0 Test for timestamp 2025-05-03 15:44:22 +02:00
Marcin Kulik
16d56a54e5 Use anyhow's .context() when bubbling up errors 2025-04-24 13:50:19 +02:00
Marcin Kulik
c2b3936d1a Add asciicast v3 support, record and convert to v3 by default 2025-04-24 13:31:21 +02:00
Marcin Kulik
14b3746971 Exclude blank values from query string in stream producer URL 2025-04-18 22:29:31 +02:00
Marcin Kulik
b0a75ae52d Warn when no outputs enabled for session command 2025-04-15 15:14:14 +02:00
Marcin Kulik
4aced695d6 Rename logger module to status 2025-04-12 07:59:04 +02:00
Marcin Kulik
0facb54373 Prevent duplicate notice 2025-04-12 07:49:27 +02:00
Marcin Kulik
cbdd0a48f2 Query for XTVERSION, pass it to file writer and stream forwarder 2025-04-11 23:30:02 +02:00
Marcin Kulik
02ad03f815 Code tweaks 2025-04-10 11:46:35 +02:00
Marcin Kulik
8114f61886 Quicker failure path in terminal theme querying 2025-04-10 11:13:53 +02:00
Marcin Kulik
663ec89b4e Remove unnecessary pub 2025-04-10 11:03:41 +02:00
Marcin Kulik
f8994a8dda Update MSRV in README 2025-04-09 16:04:52 +02:00
Marcin Kulik
3b5a9cbb5f Rename Theme to TtyTheme 2025-04-09 15:41:41 +02:00
Marcin Kulik
d9aa39aadf Add logging and notifications for I/O errors during recording 2025-04-09 15:30:54 +02:00
Marcin Kulik
0fcdebe03f Remove unnecessary trait bound 2025-04-09 14:00:41 +02:00
Marcin Kulik
2c4c089987 Prevent invalid order of events in stream handler 2025-04-09 14:00:41 +02:00
Marcin Kulik
92ba0a1485 Split pty::Handler into 2 traits 2025-04-09 14:00:41 +02:00
Marcin Kulik
bb7db2c184 Bump MSRV to 1.75 2025-04-08 21:51:07 +02:00
Marcin Kulik
60904599bf Avoid vt dump as initial stream event when it's unnecessary 2025-04-04 22:32:10 +02:00
Marcin Kulik
1226cacff3 Handle forwarding failures gracefully 2025-04-04 21:18:34 +02:00
Marcin Kulik
fa3d6cdb12 Fix env capture in session command 2025-04-04 18:15:49 +02:00
Marcin Kulik
dc2444453f Fix time serialization in v2 encoder 2025-03-31 11:25:15 +02:00
Marcin Kulik
287daeda31 Group use statements 2025-03-25 23:10:15 +01:00
Marcin Kulik
8660a74e80 Add session command 2025-03-25 22:59:58 +01:00
Marcin Kulik
c6155f62a0 Forward captured env vars to stream relay (asciinema server)
This lets asciinema server save those in the cast files when stream
recording is enabled with `STREAM_RECORDING` config option.
2025-02-26 16:16:33 +01:00
Marcin Kulik
206c0e8ea0 Refactor notifier background thread spawning 2025-02-26 11:23:03 +01:00
Marcin Kulik
3964e3564c Include env in query params when connecting to the relay 2025-02-25 19:34:36 +01:00
Marcin Kulik
a341d94cfd Update js player to the latest version 2025-02-25 11:20:58 +01:00
Marcin Kulik
6293c8b3c8 Support marker events in streams 2025-02-25 11:20:15 +01:00
Marcin Kulik
e3870dd3ca Fix stopping of looped playback
Fixes #675
2025-02-24 20:25:21 +01:00
Marcin Kulik
3451061d86 Improve error message 2025-02-24 20:25:21 +01:00
Marcin Kulik
ac7e06b47e Disable blank issue option 2025-02-22 13:00:54 +01:00
Marcin Kulik
1622c38ee8 Include term and shell in query params when connecting to the relay 2025-02-19 12:45:10 +01:00
Marcin Kulik
1a64fef0f9 cargo fmt 2025-02-19 12:41:06 +01:00