Skip to content

madonctl 0.5.0

Compare
Choose a tag to compare
@McKael McKael released this 01 May 13:57
· 213 commits to master since this release
  • Add server statistics (using gomif to query the instances.mastodon.xyz API)
  • Add color command for templates (ANSI escape codes) and --color command line flag
    Use color function in template examples
  • Add shell completion for --output, --visibility and --color
  • Add a function "fromunix" to the templates to convert UNIX time stamps to dates
  • Set non-zero exit code when the API call fails
  • Update to Madon library 1.4.0
  • Update documentation and add sample scripts to the repository (examples directory)

Examples of instance statistics:

% madonctl instance --stats
- Instance: mamot.fr
  Users: 5889
  Statuses: 129630
  Open Registrations: true
  Up: true
  Date: 2017-04-30 23:57:45 +0200 CEST
% madonctl instance --stats --server mastodon.social \
     --template '{{printf "%v users\n" .users}}'
51547 users

You can check the examples/instance_statistics.sh script for a usage with a time range.