399ed93dc8
Replaces cli.sh + lib/*.sh with a claude_bottle/ Python package and a
cli.py entry point. No external dependencies — uses only Python's
stdlib (json, subprocess, getpass, tempfile, argparse, re, etc.).
- claude_bottle/{log,docker,manifest,env_resolve,network,pipelock,
skills,ssh,cli}.py mirror the previous lib/*.sh modules.
- Tests converted to unittest under tests/test_*.py with a stdlib
runner at tests/run_tests.py (unit | integration | path).
- .githooks/commit-msg ported to Python; same Conventional Commits rules.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
26 lines
809 B
Python
Executable File
26 lines
809 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""cli.py — manage claude-bottle containers.
|
|
|
|
usage: cli.py <command> [args...]
|
|
|
|
Commands:
|
|
build build (or rebuild) the claude-bottle Docker image.
|
|
cleanup stop and remove all active claude-bottle containers.
|
|
edit open an agent in vim for editing.
|
|
info print env, skills, and prompt details for a named agent.
|
|
init interactively create a new agent and add it to claude-bottle.json.
|
|
list list available agents or active containers.
|
|
start boot a sandboxed container for a named agent and attach an
|
|
interactive claude-code session. The container is torn down
|
|
when the session ends.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
from claude_bottle.cli import main
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|