Module: cli¶
The CLI is basically documented everywhere else. It takes 5 subcommands:
* fetch
: Connect to a bunch of servers and fetch toots
* analyse
: Read the files we stored from fetch
and analyse them
* post
: Post the results on Mastodon
* graph
: Draw a histogram diagram
* wordcloud
: Draw a word cloud diagram
Debugging¶
The main thing that the CLI module does is handle command line arguments and set the debug level. I intended debug
to be a config option in the config module. That way you could turn up or turn down the verbosity on different phases. I didn't implement it that way. That's on the TODO list. Instead you have to give the --debug
(or -d
) option on the command line and it will apply everywhere.
Code Reference¶
cli.py: Command line module for calling mastoscore to do its work
main()
¶
Parse command line arguments, figure out what we're doing. Do it.
Source code in mastoscore/cli.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|