Expand description
todo is a library and command line tool for interacting with Asana.
§Usage
§Command line interface
Install from crates.io:
cargo install ziyad-todoOr use cargo-binstall for pre-built binaries:
cargo binstall ziyad-todoThen run todo --help for usage information.
§Updating automatically in the background
If you’re using the --use-cache option, we’ll pull from the most recent cache (which gets updated when you run todo update or run any other commands). But if you’re not actively using the tool, and only using it e.g. at terminal startup to show you how many tasks you have, then you probably want that cache to be up to date all the time. You can easily set up a cronjob to do that.
Open up crontab -e and add the following line:
*/1 * * * * . "$HOME/.cargo/env" && todo updateIf caching isn’t working, you’ll get a warning.
§Library
Add to your Cargo.toml:
[dependencies]
ziyad-todo = "1"See docs.rs/ziyad-todo for documentation.
Modules§
- asana
- Simple interactions with the Asana API.
- cache
- Application cache for storing data between runs.
- commands
- Command handlers for the CLI.
- config
- Application configuration types.
- context
- Application context shared across commands.
- focus
- Focus day types and related functionality.
- task
- User task types.
- utils
- Utility functions shared across the application.