pyxelによるシェルコマンドのGUI実行アプリ
ローカルのシェルコマンドを登録して、ボタン操作で実行することができます。
A GUI application for executing shell commands using Pyxel.
You can register local shell commands and execute them via button controls.
-
一覧画面の下部へログが一部表示されますが、最後の5行しか表示されません。
-
ログファイル含めた全てのファイルは、WIndowsの場合
C:\Users\yourname\.pyxel\okapping\sh-runner\へ作成され、macの場合は/Users/yourname/.pyxel/okapping/sh-runnerへ作成されます。 -
エスケープキーでアプリを強制終了します。
-
Press the play button
on the list screen to execute the registered shell command. -
A partial log is displayed at the bottom of the list screen, but only the last five lines are shown.
-
To view the full log, press the log button
; the log file will open in a separate window. -
Press the edit button
on the list screen to edit the shell command. -
To delete a shell command, navigate to the edit screen, then hold down the Ctrl key and press the trash button
in the top-right corner. -
You can add a new shell command using the plus button
in the top-right corner of the list screen. -
When adding a shell command, pressing the paste button
allows you to paste content from the clipboard into the corresponding input field. -
All files, including log files, are created at
C:\Users\yourname\.pyxel\okapping\sh-runner\on Windows and/Users/yourname/.pyxel/okapping/sh-runneron macOS. -
Press the Escape key to force-quit the application.
- スクリプトの停止機能 Script stop function
- pyxelならではの遊び心の追加 Addition of playful elements unique to Pyxel
- 設定画面のカスタマイズ項目の追加 Addition of customization options to the settings screen
- マニュアルボタンへ役割を与える Assigning a function to the manual button
- シェルスクリプト以外も検討 Considering options other than shell scripts
# clone
git clone https://github.com/okapping/SH-RUNNER.git
cd SH-RUNNER
# make venv
python3 -m venv .venv
source .venv/bin/activate
# packages install
pip install --upgrade pip
pip install -r requirements.txt
# build
chmod +x build_script.sh
./build_script.sh
# >> 🔍dist/sh-runner.app
シェルに以下を追加し、スクリプトの場所をカレントディレクトリとするようにしてください。
#!/usr/bin/env sh
set -eu
# このシェルが置かれているディレクトリを基準にする
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
cd "$SCRIPT_DIR"
# 以降通常通りのスクリプト。MIT




