From 9ccf4efd4d3babc4065be767b375727c7d739d3f Mon Sep 17 00:00:00 2001 From: Umar Getagazov Date: Thu, 4 Nov 2021 18:24:09 +0700 Subject: [PATCH 1/5] Replace mentions of freenode with libera.chat --- CONTRIBUTING.md | 4 ++-- man/asciinema.1.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a7be73a..b4327ce 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,12 +27,12 @@ However, as this is an open-source project maintained by a small team of volunte ## Proposing features/changes (pull requests) -If you want to propose code change, either introducing a new feature or improving an existing one, please first discuss this with asciinema team. You can simply open a separate issue for a discussion or join #asciinema IRC channel on freenode. +If you want to propose code change, either introducing a new feature or improving an existing one, please first discuss this with asciinema team. You can simply open a separate issue for a discussion or join #asciinema IRC channel on Libera.Chat. ## Asking for help Github issue tracker is not a support forum. -If you need help then either join #asciinema IRC channel on freenode or drop us an email at support@asciinema.org. +If you need help then either join #asciinema IRC channel on Libera.Chat or drop us an email at support@asciinema.org. ## Reporting security issues diff --git a/man/asciinema.1.md b/man/asciinema.1.md index 09a970c..01d11b1 100644 --- a/man/asciinema.1.md +++ b/man/asciinema.1.md @@ -323,7 +323,7 @@ More documentation is available on the asciicast.org website and its GitHub wiki * Web: [asciinema.org/docs/](https://asciinema.org/docs/) * Wiki: [github.com/asciinema/asciinema/wiki](https://github.com/asciinema/asciinema/wiki) -* IRC: [Channel on Freenode](https://webchat.freenode.net/?channels=asciinema) +* IRC: [Channel on Libera.Chat](https://web.libera.chat/gamja/#asciinema) * Twitter: [@asciinema](https://twitter.com/asciinema) From cb41544e578675c50351bf35b8a2f01464b5f404 Mon Sep 17 00:00:00 2001 From: Christian Felder Date: Fri, 3 Dec 2021 20:47:08 +0100 Subject: [PATCH 2/5] README: update version mentioned for base image --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f6d151d..2c5b601 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Then run it with: ### Docker image -asciinema Docker image is based on Ubuntu 18.04 and has the latest version of +asciinema Docker image is based on Ubuntu 20.04 and has the latest version of asciinema recorder pre-installed. docker pull asciinema/asciinema From 1428ff7243f2be43894f2af0b11641fb77c28e53 Mon Sep 17 00:00:00 2001 From: Abhimanyu Singh Date: Mon, 22 Nov 2021 01:14:00 +0530 Subject: [PATCH 3/5] Append Behavior Do not append if the file does not exit. --- asciinema/commands/record.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asciinema/commands/record.py b/asciinema/commands/record.py index b8f9423..5d1b105 100644 --- a/asciinema/commands/record.py +++ b/asciinema/commands/record.py @@ -59,6 +59,10 @@ class RecordCommand(Command): self.print_error("use --overwrite option if you want to overwrite existing recording") self.print_error("use --append option if you want to append to existing recording") return 1 + elif append: + self.print_warning("%s does not exist, not appending" % self.filename) + + append = False if append: self.print_info("appending to asciicast at %s" % self.filename) From 1ed3e883cbcc46f30f8855f4067562a60180a958 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 13 Dec 2021 21:56:50 +0100 Subject: [PATCH 4/5] Remove unnecessary blank line --- asciinema/commands/record.py | 1 - 1 file changed, 1 deletion(-) diff --git a/asciinema/commands/record.py b/asciinema/commands/record.py index 5d1b105..60f98a1 100644 --- a/asciinema/commands/record.py +++ b/asciinema/commands/record.py @@ -61,7 +61,6 @@ class RecordCommand(Command): return 1 elif append: self.print_warning("%s does not exist, not appending" % self.filename) - append = False if append: From d6970b239a428a1ca58ea5b4ec0599992f121dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Mellstr=C3=B6m?= <11281108+harkabeeparolus@users.noreply.github.com> Date: Sat, 11 Dec 2021 23:14:34 +0100 Subject: [PATCH 5/5] Recommend pipx installation --- README.md | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2c5b601..d2cda0d 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,14 @@ Terminal session recorder and the best companion of asciinema lets you easily record terminal sessions and replay them in a terminal as well as in a web browser. -Install latest version ([other installation options](#installation)): +Install latest version ([other installation options](#installation)) +using [pipx](https://pypa.github.io/pipx/) (if you have it): - sudo pip3 install asciinema + pipx install asciinema + +If you don't have pipx, install using pip with your preferred Python version: + + python3 -m pip install asciinema Record your first session: @@ -57,15 +62,21 @@ cover installation, usage and hosting of the recordings in more detail. ## Installation -### Python package +### Python package from PyPI -asciinema is available on [PyPI](https://pypi.python.org/pypi/asciinema) and can -be installed with pip (Python 3 with setuptools required): +[PyPI]: https://pypi.python.org/pypi/asciinema - sudo pip3 install asciinema +asciinema is available on [PyPI] and can +be installed with [pipx](https://pypa.github.io/pipx/) (if you have it) +or with pip (Python 3 with setuptools required): -This is the recommended way of installation, which gives you the latest released -version. + pipx install asciinema + +Or with pip (using your preferred Python version): + + python3 -m pip install asciinema + +Installing from [PyPI] is the recommended way of installation, which gives you the latest released version. ### Native packages