Hey, thanks for the tool, really enjoying the token savings!
I ran into an issue with docker compose commands. The rewrite hook sends all docker compose calls through rtk docker compose, but rtk only supports ps, logs, and build as compose subcommands. So anything else (up, down, exec, restart...) or compose-level flags like -f just breaks.
In my case, docker compose -f my-file.yml up -d --build got rewritten and failed with "unexpected argument '-f' found". Took me a bit to figure out what was going on.
I noticed the regular docker branch in the hook already filters by supported subcommand (ps, images, logs, etc.), so the compose branch could do the same thing.
For now I'm working around it by using the full binary path directly, but figured I'd report it.
Same family of issue as #236.
rtk 0.22.1 / Docker Compose v2.39.2 / macOS arm64
Hey, thanks for the tool, really enjoying the token savings!
I ran into an issue with docker compose commands. The rewrite hook sends all
docker composecalls throughrtk docker compose, but rtk only supportsps,logs, andbuildas compose subcommands. So anything else (up, down, exec, restart...) or compose-level flags like-fjust breaks.In my case,
docker compose -f my-file.yml up -d --buildgot rewritten and failed with "unexpected argument '-f' found". Took me a bit to figure out what was going on.I noticed the regular
dockerbranch in the hook already filters by supported subcommand (ps, images, logs, etc.), so the compose branch could do the same thing.For now I'm working around it by using the full binary path directly, but figured I'd report it.
Same family of issue as #236.
rtk 0.22.1 / Docker Compose v2.39.2 / macOS arm64