我在 macOS 上使用 python 3.11、诗歌版本 1.7.1。 我有一个依赖组,模型。
以下命令的输出:
❯ poetry show --top-level --only models
model1 3.7.1 https://github.com/<somerepo>/<somefile>.whl <description text>
model2 3.7.3 https://github.com/<somerepo>/<somefile>.whl <description text>
但是当我尝试将输出通过管道传输到文本文件时,它只通过管道:
model1
model2
我尝试过 grep、awk、设置
TERM=dumb
但它似乎没有通过管道传输完整的输出。这是因为特殊字符吗?
我也尝试过:
❯ poetry show --top-level --only models | cat -v
model1
model2