/vhs

Primary LanguageShell

Purpose

Demo of VHS scripting to playback a set of commands and record the results as a gif.

All except the first demo use GitHub Copilot in the CLI to generate the commands.

⚠️ These samples were build prior to the General Availability of Copilot in the CLI so please verify before use

Usage

  1. Install VHS
  2. Run vhs record -o demo.gif

Demo 1 - a simple vhs demo

Run vhs example.tape example

Demo 2 - Copilot in the CLI explain

gh copilot explain ls -la

  1. Install Copilot in the CLI
  2. Complete authentication
  3. Run vhs copilot-explain.tape copilot-explain

Demo 3 - Copilot in the CLI suggest cron

gh copilot suggest make a cron entry to run a program every tue and thu

  1. Run vhs cron.tape copilot-explain

Demo 4 - Copilot in the CLI suggest ds_store

gh copilot suggest find all .DS_Store files

  1. Run vhs ds_store.tape ds_store

Demo 5 - Copilot in the CLI suggest complex tar

The challenge (an "impossible mission")

The solution

gh copilot suggest a tar command to create a tarball of all files in a directory where the second character in the filename is "a"

  1. Run vhs tar.tape tar