[][src]Module tweetr::ops::add_user

This module contains the functions used only by the add-user subsystem.

The flow of the add-user subsystem is as follows:

Options::parse()
|> ops::add_user::verify()
|> ops::AppTokens::read()
|> ops::add_user::authorise()
|> ops::add_user::append_user()
|> ops::add_user::print_success_message()

Functions

append_user

Append the specified user to the authenticated users list at the specified path.

authorise

Direct the user towards the authorisation URL and prompt it for the PIN.

print_success_message

Print the success message mentioning the specified user's name and ID, optionally also mentioning tokens.

verify

Verify if, given the current configuration, it's permitted to continue with the subsequent steps of the add-user subsystem.