Wrs stands for Wrike Rust. It's a Wrike CLI client helping you to search and filter tasks more faster.
Download a releases, and add binary in your $PATH.
wrs
will look for 3 env vars.
let user: String = env::var("WRIKE_USER")?;
let url: String = env::var("URL")?;
let token: String = env::var("TOKEN")?;
Wrike user must be your Contact ID
, to get it, use wrs contacts --me
.
You need to configure and export them in your $PATH.
> wrs --help
Usage: wrs [COMMAND]
Commands:
tasks Actions on tasks, default list your tasks
folders Actions on folders, default list your folders
contacts Actions on contacts, default list your contacts
workflows Actions on workflows, default list your workflows
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
> wrs tasks --help
Usage: wrs tasks [OPTIONS]
Options:
--search <SEARCH> Search tasks, matching words in title
--status <STATUS> Filter searched tasks by status
--folder <FOLDER>
-m, --me Filter by only looking for your tasks
-h, --help Print help
Searching my (--me) task by looking on title search (--search) and filter by status (--status).
> wrs tasks --me --search dns --status active
+------------------+-----------------+----------+----------------------------------------------+--------+
| id | name | priority | url | status |
+------------------+-----------------+----------+----------------------------------------------+--------+
| IEABSXDCKRAXO2C7 | Check Mails DNS | Normal | https://www.wrike.com/open.htm?id=1098344543 | Active |
+------------------+-----------------+----------+----------------------------------------------+--------+
> wrs folders --help
Actions on folders, default list your folders
Usage: wrs folders [OPTIONS]
Options:
--permalink <PERMALINK>
-h, --help
Getting folder information based on its permalink:
> wrs folders --permalink="https://www.wrike.com/open.htm?id=1234567890"
+------------------+----------------------+
| id | name |
+------------------+----------------------+
| XXXXXXDCI5AY4JYE | My super folder name |
+------------------+----------------------+
> wrs contacts --help
Actions on contacts, default list your contacts
Usage: wrs contacts [OPTIONS]
Options:
-m, --me Filter by only looking for your own contact
-h, --help Print help
Getting my contact information.
> wrs contacts --me
+----------+------------+-----------+------+
| id | first_name | last_name | me |
+----------+------------+-----------+------+
| JTVXADIP | John | Doe | true |
+----------+------------+-----------+------+
> wrs workflows --help
Actions on workflows, default list your workflows
Usage: wrs workflows
Options:
-h, --help Print help
List of my workflows
> wrs workflows
+------------------+-----------------+------------------+----------------+
| id | name | status id | status name |
+------------------+-----------------+------------------+----------------+
| XXXXXXDCK4AF7RFO | Sprint Workflow | XXXXXXDCJMAF7RFO | New |
+------------------+-----------------+------------------+----------------+
| XXXXXXDCK4AF7RFO | Sprint Workflow | XXXXXXDCJMAF7RFY | Completed |
+------------------+-----------------+------------------+----------------+
| XXXXXXDCK4AF7TDB | Design Workflow | XXXXXXDCJMCGSU22 | To be designed |
+------------------+-----------------+------------------+----------------+
| XXXXXXDCK4AF7TDB | Design Workflow | XXXXXXDCJMB3JYA4 | To be reviewed |
+------------------+-----------------+------------------+----------------+