Module: cli¶
The CLI provides command-line access to Mastoscore functionality. For a web-based interface, see Backstage. This is largely obviated by the backstage graphical interface. The reason I broke it into modules was to carefully, step-by-step go through the process. The web GUI does that now.
Subcommands¶
fetch: Connect to servers and fetch tootsanalyse: Read fetched files and analyse them, storing results in JSONpost: Read analysis files and post results and graphs to Mastodongraph: Draw a histogram of activity during the eventwordcloud: Draw a word cloud of words used during the eventgraphs: Convenience command that runs bothgraphandwordcloud
Usage¶
mastoscore [--debug LEVEL] CONFIG_FILE ACTION
Arguments:
CONFIG_FILE- Path to .ini configuration file (required)ACTION- One of: fetch, analyse, post, graph, wordcloud, graphs
Options:
--debug LEVELor-d LEVEL- Set logging level (DEBUG, INFO, WARN, ERROR). Default: WARN
Debugging¶
The main thing that the CLI module does is handle the --debug (or -d) option 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
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | |