コンテンツにスキップ

使用例

機能の説明を文字で長々とするより、実際の使用例を見てもらった方がきっと良いでしょう。 このページは実物の使用例がたくさん掲載されています。

自分自身の説明文をキャプチャしてみます。

Terminal
console2svg capture -- console2svg

console2svg

詳細

macOSのターミナル風、横幅を指定して、実行コマンド名も付けています。

Terminal
console2svg capture -w 100 -c -d macos-pc -- fastfetch

fastfetch

詳細

なかなかおしゃれにできます。

Terminal
console2svg capture -w 100 -h 10 -c -d macos-pc \
--background "image1.png" --opacity 0.95 \
-- oh-my-logo "console2svg" mint --filled --letter-spacing 0

oh-my-logo "console2svg" mint --filled --letter-spacing 0

詳細

Terminal
console2svg capture -c -d -v -- sl

sl

Terminal
console2svg capture -w 100 -h 24 -c -d macos-pc -v --timeout 5 -- cmatrix -ab

cmatrix -ab

Terminal
console2svg capture -w 160 -h 28 -c -d -v --timeout 5 --sleep 0.5 -- nyancat

nyancat

詳細

事前に用意したリプレイファイルを再生することで、CI環境上でも同じ出力を再現できます。

Terminal
console2svg replay ./replay.json -w 80 -h 20 -v -c -d macos -- bash

console2svg replay ./replay.json -w 80 -h 20 -v -c -d macos -- bash

詳細

F9キーで録画を開始して、もう一度F9キーで録画を終了します。

Terminal
console2svg interactive -d macos -o ./captures/output.svg

console2svg interactive -d macos -o ./captures/output.svg

詳細

組み込みでも、カスタムテーマでも、好きなテーマを指定できます。

Terminal
console2svg capture -w 100 -h 24 -c -d macos -t nord --timeout 2 -- cmatrix -ab

cmatrix -ab

Terminal
console2svg capture -w 100 -h 24 -c -t cyberpunk-pc --timeout 2 -- cmatrix -ab

cmatrix -ab

詳細

Terminal
cat <<EOF > .env
CURRENT_DIRECTORY=$(pwd)
APP_SECRET_TOKEN=1234567890thankyou
HTTP_PROXY=http://username:superSecurePassword@10.0.0.1:8080
CONNECTION_STRING=Server=localhost;Database=myDataBase;User Id=myUsername;Password=myPassword;
MYSQL_CONNECTION_URL=mysql://username:superSecurePassword@localhost:3306/myDatabase
GIT_USERNAME=hidden_truth_name
GIT_EMAIL_ADDRESS=hidden_truth_name@example.com
COMMON_HASH=$(openssl rand -hex 16)
SECRET_HASH=$(openssl rand -hex 16)
EOF
console2svg capture -80 -h 14 -d macos-pc -t github-dark -- cat .env

cat ../../.env

詳細