{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "cd \/opt\/scripts\/pipeline && DB_PASSWORD=$(grep MARIADB_ROOT_PASSWORD \/var\/www\/dev.campus.systemische-tools.de\/.env | cut -d= -f2) python3 -c \"\nimport mysql.connector\nimport os\nconn = mysql.connector.connect(\n host='localhost',\n database='ki_content',\n user='root',\n password=os.environ.get('DB_PASSWORD', '')\n)\ncursor = conn.cursor(dictionary=True)\ncursor.execute('SELECT id, type, name, slug, status FROM content_config ORDER BY type, name')\nfor row in cursor.fetchall():\n print(f'{row[\\\"id\\\"]:3} | {row[\\\"type\\\"]:15} | {row[\\\"name\\\"]:30} | {row[\\\"status\\\"]}')\ncursor.close()\nconn.close()\n\"",
"description": "Query content_config via Python"
}
}