-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update demo gif, add generator scripts (#16)
- Loading branch information
1 parent
3a6da24
commit c9585bf
Showing
6 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
INTERACTIVE=${INTERACTIVE:-"1"} | ||
|
||
run() { | ||
type "kubectl operator catalog list -A" | ||
type "kubectl operator list-available cockroachdb" | ||
type "kubectl operator install cockroachdb --create-operator-group -v 2.1.1" | ||
type "kubectl operator list" | ||
type "kubectl operator upgrade cockroachdb" | ||
type "kubectl operator list" | ||
type "kubectl operator uninstall cockroachdb --delete-crds --delete-operator-groups" | ||
} | ||
|
||
prompt() { | ||
echo "" | ||
echo -n "$ " | ||
} | ||
|
||
type() { | ||
prompt | ||
sleep 1 | ||
for (( i=0; i<${#1}; i++ )); do | ||
echo -n "${1:$i:1}" | ||
sleep 0.06 | ||
done | ||
echo "" | ||
sleep 0.25 | ||
$1 | ||
[[ "$INTERACTIVE" == "1" ]] && read -p "" | ||
} | ||
|
||
run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
|
||
INTERACTIVE=0 asciinema rec --overwrite -c ./assets/demo/demo.sh ./assets/demo/demo.asciinema.json | ||
asciicast2gif -w 90 -h 33 ./assets/demo/demo.asciinema.json ./assets/demo/demo.gif | ||
rm ./assets/demo/demo.asciinema.json |