diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2016-03-10 02:11:32 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-12 06:42:46 +0700 |
commit | efa9bff61533272e40f3e23ca87a5aee8d1fc0b2 (patch) | |
tree | 02acc21442f6307e6c85717f153f8bd18db82453 /network | |
parent | fc22727c244dd54c3043e8c8a2e0f9c78d27d7d5 (diff) | |
download | slackbuilds-efa9bff61533272e40f3e23ca87a5aee8d1fc0b2.tar.gz |
network/asciinema: Updated for version 1.2.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'network')
-rw-r--r-- | network/asciinema/asciinema.1 | 69 | ||||
-rw-r--r-- | network/asciinema/asciinema.SlackBuild | 4 | ||||
-rw-r--r-- | network/asciinema/asciinema.info | 10 |
3 files changed, 54 insertions, 29 deletions
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 [<args>] +.B asciinema +.I [\-h] [\-\-version] command [<args>] .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 [<filename>] .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<filename>\fP and/or uploaded to asciinema.org with \fBasciinema upload\fP \fI<filename>\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 <sec> 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 <filename> @@ -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" |