From efa9bff61533272e40f3e23ca87a5aee8d1fc0b2 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 10 Mar 2016 02:11:32 +0200 Subject: network/asciinema: Updated for version 1.2.0. Signed-off-by: Dimitris Zlatanidis --- network/asciinema/asciinema.1 | 69 +++++++++++++++++++++++----------- network/asciinema/asciinema.SlackBuild | 4 +- network/asciinema/asciinema.info | 10 ++--- 3 files changed, 54 insertions(+), 29 deletions(-) (limited to 'network') diff --git a/network/asciinema/asciinema.1 b/network/asciinema/asciinema.1 index f7de678fa2..1d96f401c7 100644 --- a/network/asciinema/asciinema.1 +++ b/network/asciinema/asciinema.1 @@ -1,16 +1,15 @@ -.TH "ASCIINEMA" "1" "December 17, 2014" "asciinema 0.9.9" +.TH "asciinema" "1" "June 21, 2015" "asciinema 1.1.1" .SH "NAME" -asciinema \- Terminal recorder for asciinema.org service +asciinema \- terminal session recorder .SH "SYNOPSIS" -.I asciinema -[\-h] [\-\-version] command [] +.B asciinema +.I [\-h] [\-\-version] command [] .SH "DESCRIPTION" -Command line client (terminal recorder) for asciinema.org service. +Terminal session recorder and the best companion of asciinema.org service. .PP -If you run -.I asciinema -with no arguments, help will be displayed showing all available commands. +asciinema is composed of multiple commands, similar to git, apt-get or brew. .PP +When you run asciinema with no arguments help messages is displayed, listing all available commands with their options. .SH "OPTIONS" .TP \-h, \-\-help @@ -19,30 +18,37 @@ Display help message \-\-version Display version information .SH "COMMANDS" -.B rec +.B rec [] .RS 4 -Record terminal session and upload it to asciinema.org site. +Record terminal session. .PP -This is the single most important command in \fIasciinema\fP, since it is how you utilize this tool's main job. +This is the single most important command in asciinema, since it is how you utilize this tool's main job. .PP -By running \fIasciinema\fP rec you start a new recording session. The command (process) that is recorded can be specified with \fI-c\fP option (see below), and defaults to \fB$SHELL\fP which is what you want in most cases. +By running \fBasciinema rec\fP \fI[filename]\fP you start a new recording session. The command (process) that is recorded can be specified with \fI-c\fP option (see below), and defaults to \fB$SHELL\fP which is what you want in most cases. .PP Recording finishes when you exit the shell (hit \fBCtrl+D\fP or type \fIexit\fP). If the recorded process is not a shell than recording finishes when the process exits. .PP +If the \fIfilename\fP argument is given then the resulting recording is saved to a local file. It can later be replayed with \fBasciinema play\fP \fI\fP and/or uploaded to asciinema.org with \fBasciinema upload\fP \fI\fP. If the \fIfilename\fP argument is omitted then (after asking for confirmation) the resulting asciicast is uploaded to asciinema.org for further playback in a web browser. +.PP \fBASCIINEMA_REC=1\fP is added to recorded process environment variables. This can be used by your shell's config file (\fI.bashrc\fP, \fI.zshrc\fP) to alter the prompt or play a sound when shell is being recorded. +.TP +Available options: .RS 4 .TP \-c, \-\-command -command to record (if none given a new shell instance is recorded) -.TP -\-w, \-\-max\-wait -reduce recorded terminal inactivity to maximum of seconds (0 turns off) +specify command to record, defaults to $SHELL .TP \-t -specify title of the asciicast +specify the title of the asciicast +.TP +\-w, \-\-max\-wait +reduce recorded terminal inactivity to max seconds .TP \-y, \-\-yes -upload immediately after shell exits, without asking for confirmation +answer "yes" to all prompts (e.g. upload confirmation) +.TP +\-q, \-\-quiet +be quiet, suppress all notices/warnings (implies -y) .RE .RE .PP @@ -52,11 +58,16 @@ Replay recorded asciicast in a terminal. .PP This command replays given asciicast (as recorded by \fIrec\fP command) directly in your terminal. .PP +When "-" is passed as a filename the asciicast is read from stdin. +.PP NOTE: it is recommended to run it in a terminal of dimensions not smaller than the one used for recording as there's no "transcoding" of control sequences for new terminal size. +.TP +Available options: .RS 4 .TP \-w, \-\-max\-wait -reduce replayed terminal inactivity to maximum of seconds (0 turns off) +reduce replayed terminal inactivity to max \fIsec\fP seconds +.RE .RE .PP .B upload @@ -64,14 +75,28 @@ reduce replayed terminal inactivity to maximum of seconds (0 turns off) Upload recorded asciicast to asciinema.org site. .PP This command uploads given asciicast (as recorded by \fIrec\fP command) to asciinema.org for further playback in a web browser. +.PP +\fBasciinema rec\fP \fIdemo.json\fP + \fBasciinema play\fP \fIdemo.json\fP + \fBasciinema upload\fP \fIdemo.json\fP is a nice combo for when you want to review an asciicast before publishing it on asciinema.org. .RE .PP .B auth .RS 4 Assign local API token to asciinema.org account. -.TP -\-h, \-\-help -Display help message +.PP +On every machine you install asciinema recorder, you get a new, unique API +token. This command connects this local token with your asciinema.org account, +and links all asciicasts recorded on this machine with the account. +.PP +This command displays the URL you should open in your web browser. If you never +logged in to asciinema.org then your account will be created when opening the +URL. +.PP +NOTE: it is \fBnecessary\fP to do this if you want to edit or delete your +recordings on asciinema.org. +.PP +You can synchronize your config file (which keeps the API token) across the +machines but that's not necessary. You can assign new tokens to your account +from as many machines as you want. .RE .SH "CONTRIBUTING" If you want to contribute to this project check out Contributing page: \fIhttps://asciinema.org/contributing\fP diff --git a/network/asciinema/asciinema.SlackBuild b/network/asciinema/asciinema.SlackBuild index bc6caed44d..a5bd32172f 100644 --- a/network/asciinema/asciinema.SlackBuild +++ b/network/asciinema/asciinema.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for asciinema -# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=asciinema -VERSION=${VERSION:-1.1.1} +VERSION=${VERSION:-1.2.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} diff --git a/network/asciinema/asciinema.info b/network/asciinema/asciinema.info index b0eb297fc0..9c3afc26cf 100644 --- a/network/asciinema/asciinema.info +++ b/network/asciinema/asciinema.info @@ -1,10 +1,10 @@ PRGNAM="asciinema" -VERSION="1.1.1" +VERSION="1.2.0" HOMEPAGE="http://asciinema.org" -DOWNLOAD="https://github.com/asciinema/asciinema/releases/download/v1.1.1/asciinema-1.1.1-linux-386.tar.gz" -MD5SUM="7f8f00f6ed5920d58a0fb3fbd3b4fa00" -DOWNLOAD_x86_64="https://github.com/asciinema/asciinema/releases/download/v1.1.1/asciinema-1.1.1-linux-amd64.tar.gz" -MD5SUM_x86_64="0b2320684bba6daa6ea3342a1fc0050d" +DOWNLOAD="https://github.com/asciinema/asciinema/releases/download/v1.2.0/asciinema-1.2.0-linux-386.tar.gz" +MD5SUM="4dbe4c0127fcd20ec32c6d81faac2a27" +DOWNLOAD_x86_64="https://github.com/asciinema/asciinema/releases/download/v1.2.0/asciinema-1.2.0-linux-amd64.tar.gz" +MD5SUM_x86_64="92fefe112b8464fe70bc92c8a8215ed0" REQUIRES="" MAINTAINER="Dimitris Zlatanidis" EMAIL="d.zlatanidis@gmail.com" -- cgit v1.2.3