Illustration of default single-package setup for
You can start at 0:33 if you already have nix and direnv.
See template options for monorepo setup.
1.0 - clone template source
7.0 - ignore direnv error
8.0 - check contents of command to verify nix and direnv installation
12.0 - install nix and direnv (or verify they exist on PATH)
17.0 - get command to instantiate template from README.md
29.0 - optionally remove template source code (unless you want to develop)
33.0 - execute template instantiation command
38.0 - fill in custom parameters such as new package name
50.0 - copy the `git init ... direnv allow` command from the welcome message
51.0 - cd into new template and run the `git init ... direnv allow` command
1:11 - run `pytest` tests
1:14 - run package executable at new package name (`pnt-new` in this case)
1:17 - run `just` to list task runner tasks (see README)
1:19 - run `tree` to see new project layout
Share this recording
Link
Append ?t=30
to start the playback at 30s, ?t=3:20
to start the playback at 3m 20s.
Embed image link
Use snippets below to display a screenshot linking to this recording.
Useful in places where scripts are not allowed (e.g. in a project's README file).
HTML:
Markdown:
Embed the player
If you're embedding on your own page or on a site which permits script tags, you can use the full player widget:
Paste the above script tag where you want the player to be displayed on your page.
See embedding docs for additional options.
Download this recording
You can download this recording in asciicast v2 format, as a .cast file.
DownloadReplay in terminal
You can replay the downloaded recording in your terminal using the
asciinema play
command:
asciinema play 706801.cast
If you don't have asciinema CLI installed then see installation instructions.
Use with stand-alone player on your website
Download asciinema player from
the releases page
(you only need .js
and .css
file), then use it like this:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="asciinema-player.css" />
</head>
<body>
<div id="player"></div>
<script src="asciinema-player.min.js"></script>
<script>
AsciinemaPlayer.create(
'/assets/706801.cast',
document.getElementById('player'),
{ cols: 190, rows: 45 }
);
</script>
</body>
</html>
See asciinema player quick-start guide for full usage instructions.
Generate GIF from this recording
While this site doesn't provide GIF conversion at the moment, you can still do it yourself with the help of asciinema GIF generator utility - agg.
Once you have it installed, generate a GIF with the following command:
agg https://asciinema.org/a/f7tbv3XQIK9VoCaxrkRZqdk8r demo.gif
Or, if you already downloaded the recording file:
agg demo.cast demo.gif
Check agg --help
for all available options. You can change font
family and size, select color theme, adjust speed and more.
See agg manual for full usage instructions.