Skip to content

LeBaronDeCharlus/wrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrs

Wrs stands for Wrike Rust. It's a Wrike CLI client helping you to search and filter tasks more faster.

⚠️ This project is under development, please use it with caution.

Installation

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.

Usage

> 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

Tasks action

> 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 |
+------------------+-----------------+----------+----------------------------------------------+--------+

Folders action

> 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 |
+------------------+----------------------+

Contacts action

> 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 |
+----------+------------+-----------+------+

Workflows action

> 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 |
+------------------+-----------------+------------------+----------------+

Contributors ✨

About

⚠️ IN DEVELOPMENT ⚠️ - Wrike CLI client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages