From 2ab8c55bac9c8250d4cfcb5ac37c2552294b9fe0 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Tue, 8 Sep 2020 18:41:37 +1000 Subject: [PATCH] update instructions - fix docs Home link being wrong - add --verbose to options page in docs - add info about where to see docs, in init() --- docs/install.md | 13 +++++++++---- docs/options.md | 4 ++++ ephemetoot/ephemetoot.py | 10 ++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/docs/install.md b/docs/install.md index 1aa7a9b..5a1c6f9 100644 --- a/docs/install.md +++ b/docs/install.md @@ -24,15 +24,20 @@ Now you've installed `ephemetoot`, in order to actually use it you will need an 1. Click the `settings` cog 2. Click on `Development` 3. Click `NEW APPLICATION` -4. Enter an application name (e.g. 'ephemetoot'), and give the app both 'read' and 'write' Scopes +4. Enter an application name (e.g. 'ephemetoot') +5. The following 'scopes' are required: + - `read:accounts` + - `read:statuses` + - `write:conversations` + - `write:statuses` 5. Click `SUBMIT` 6. Click on the name of the new app, which should be a link 7. Copy the `Your access token` string - you will need this for your configuration file (see below) **NOTE**: Anyone who has your access token and the domain name of your Mastodon server will be able to: * read all your private and direct toots, -* publish toots and DMs, and -* delete everything in your account. +* publish toots and DMs from your account, and +* read everything in your account settings. **Do not share your access token with anyone you do not 100% trust!!!**. @@ -72,7 +77,7 @@ visibility_to_keep: [ ] # this empty list is also ok As of version 2, you can use a single `ephemetoot` installation to delete toots from multiple accounts. If you want to use `ephemetoot` for multiple accounts, separate the config for each user with a single dash (`-`), and add the additional details, as shown in [the example file](https://github.com/hughrun/ephemetoot/blob/master/example-config.yaml). --- -* [Home](/) +* [Home](./) * [Options](./options.md) * [Upgrading and uninstalling](./upgrade.md) * [Contributing](./contributing.md) \ No newline at end of file diff --git a/docs/options.md b/docs/options.md index 557081e..d777e3a 100644 --- a/docs/options.md +++ b/docs/options.md @@ -57,6 +57,10 @@ ephemetoot --retry-mins 20 If you want to know exactly when each delete action occured, you can use the `--datestamp` flag to add a datestamp to the log output. This is useful when using `--pace` so you can see the rate you have been slowed down to. +### Include full error messages (--verbose) + +Sometimes you might get an error and want to know more about what's triggering it. Use the `--verbose` flag to print the full error to the console, instead of just the friendly version. + ## Do less ### Hide skipped items (--hide-skipped) diff --git a/ephemetoot/ephemetoot.py b/ephemetoot/ephemetoot.py index e0c6212..d27e399 100644 --- a/ephemetoot/ephemetoot.py +++ b/ephemetoot/ephemetoot.py @@ -63,6 +63,16 @@ def init(): # text colour markers (beginning, example, end) tags = ("\033[96m", "\033[2m", "\033[0m") + print("\nCreate your config.yaml file.\n") + print( + "For help checkout the docs at ", + tags[0], + "ephemetoot.hugh.run", + tags[2], + "\n", + sep="" + ) + conf_token = compulsory_input(tags, "Access token: ", None) conf_user = compulsory_input(tags, "Username", "(without the '@' - e.g. alice):") conf_url = compulsory_input(tags, "Base URL", "(e.g. example.social):")