use root Writer in completion subcommand and add write error test
use root Writer in completion subcommand and add write error test: a task in repo2rlenv-commit-runtime-v2 (Harbor dataset). Title: Completion subcommand ignores root command's configured Writer and outputs to stdout instead
Part of FineEnvs/repo2rlenv-commit-runtime.