用于管理目标的命令行脚本
invisibleroads-scripts的Python项目详细描述
以下是用于管理目标的命令行脚本。
pip install -U invisibleroads-scripts invisibleroads edit Do Mark pending _ Mark cancelled + Mark done Exercise Do 10 pullups Do 20 pushups Do 30 jumps Sleep invisibleroads edit -A # Include archived goals invisibleroads edit your-keyword # Filter by keyword invisibleroads edit your-goal-id # Focus on specific goal # Mission Specify a goal # Log Record notes # Schedule 20181225 Schedule goals by date using YYYYMMDD # Tasks List remaining tasks using nested indent
脚本配置
以下是配置脚本的可选步骤。
vim ~/.invisibleroads/configuration.ini [editor] command = vim timezone = US/Eastern [database] # dialect = postgresql # username = # password = # host = # port = # name = dialect = sqlite path = ~/.invisibleroads/goals.sqlite [archive] folder = ~/.invisibleroads business.terms = business goals business.folder = ~/Projects/business-missions personal.terms = personal goals personal.folder = ~/Projects/personal-missions pip install -U invisibleroads-scripts invisibleroads edit
数据库配置
如果要配置远程数据库,请执行以下步骤。
ssh your-machine # Install packages sudo dnf install -y postgresql-server # Initialize database server sudo postgresql-setup --initdb --unit postgresql # Start database server sudo systemctl start postgresql # Add database user sudo -s -u postgres psql CREATE USER your-username WITH PASSWORD 'your-password'; CREATE DATABASE your-database OWNER your-username; # Configure database access sudo -s -u postgres psql \password postgres show hba_file; sudo vim /var/lib/pgsql/data/pg_hba.conf host your-database your-username your-ipv4 md5 host your-database your-username your-ipv6 md5 # host your-database your-username 0.0.0.0/0 md5 # host your-database your-username ::0/0 md5 sudo vim /var/lib/pgsql/data/postgresql.conf listen_addresses = 'your-ip' # listen_addresses = '*' sudo systemctl restart postgresql # Open database port sudo firewall-cmd --add-port=5432/tcp # Start database server on boot (optional) sudo systemctl enable postgresql sudo firewall-cmd --permanent --add-port=5432/tcp vim ~/.invisibleroads/configuration.ini [editor] command = vim timezone = US/Eastern [database] dialect = postgresql username = your-username password = your-password host = your-machine port = 5432 name = your-database [archive] folder = ~/.invisibleroads business.terms = business goals business.folder = ~/Projects/business-missions personal.terms = personal goals personal.folder = ~/Projects/personal-missions
2.0
- 支持远程数据库
1.0
- 添加了InvisibleRoads网站的功能