From 380dca7786652b27a3531b1ee4fefe42d8da05c5 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Tue, 27 Nov 2018 12:41:21 +0100 Subject: improve the README --- README.md | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3dc702f..02e6492 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,52 @@ # Rust teams structure -This repository contains the structure of the Rust teams. +This repository contains the structure of the Rust teams. It's automatically +synchronized with the following services: + +* Mailing lists (through MailGun) + +## Using the CLI tool + +It's possible to interact with this repository through its CLI tool. + +### Synchronizing with third-party providers + +The `sync` subcommand synchronizes the repository with all the third-party +providers we support: + +``` +$ cargo run sync +``` + +You need to have the following environment variables: + +* `MAILGUN_API_TOKEN`: the authentication token for the Rust MailGun account + +### Verifying the integrity of the repository + +This repository contains some sanity checks to avoid having stale or broken +data. You can run the checks locally with the `check` command: + +``` +$ cargo run check +``` + +### Querying information out of the repository + +There are a few CLI commands that allow you to get some information generated +from the data in the repository. + +You can get a list of all the people in a team: + +``` +$ cargo run dump-team all +``` + +You can get a list of all the email addresses subscribed to a list: + +``` +$ cargo run dump-list all@rust-lang.org +``` ## Schema -- cgit v1.2.3