python - taskwarrior "task del"没有确认对话框

标签 python shell subprocess confirmation taskwarrior

在 taskwarrior 中有一些命令需要确认,比如删除超过 2 个任务或修改重复任务。我不想每次都确认,我已经在文件 .taskrc 中设置了“确认关闭”。

我在 python 中使用 subprocess 模块来调用 taskwarrior 命令。例如,我正在调用 task del 1,2,3,shell 现在等待手动确认删除请求。

如何避免人工确认?

最佳答案

您应该将confirmation=no 添加到~/.taskrc

这是一个简单的方法:

echo confirmation=no >> ~/.taskrc

关于python - taskwarrior "task del"没有确认对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48606717/

相关文章:

python - 如何读取大型文本文件避免逐行读取::Python

python - 在 Python 中子类化特定异常的缺点?

python - axis = 0 在 Numpy 的 sum 函数中做了什么?

linux - 如何打印特定用户名的 CMD1、PID、PPID、USER、UID、GID,它应该采用相同的格式,我已经使用了这个命令,但它向所有用户显示

bash - 我应该将 shell 函数定义为函数 x( ) 还是仅定义为 x( )?

python - Python 3.9.1(或 3.9.2)中 "subprocess"模块的问题 - "subprocess.Popen"不起作用

python - 根据长度向 df.Column 中的字符串添加尾随 0

linux - 使用 zshrc 别名 sudo - 获取 "aliased to nocorrect sudo"

python - 为什么子进程标准输出到文件的顺序是乱写的?

python - 子进程模块输入换行符