pre-commit, launcher, _colors, api:gen, bootstrap, build, cleanup, container_id, container_ids, debug:send, downkill, env, logs, migrate, pkg:update, ps, python, restart, setup:dev, shell, start, stop, and ui_dev
19 lines
446 B
Bash
Executable File
19 lines
446 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. ./cmd/env
|
|
|
|
|
|
run_python() {
|
|
trap 'abort' INT
|
|
heading "Launching backend Python shell..."
|
|
|
|
BACKEND_ID=$(cmd/container_id backend)
|
|
if [ ! -z "$BACKEND_ID" ]; then
|
|
ob_compose exec backend python3 -i app/shell.py
|
|
success
|
|
else
|
|
error "Error: The backend container is not running."
|
|
info " To start up the OSINTBuddy app try running: ./launcher start"
|
|
fi
|
|
}
|
|
|
|
run_python |