discord-modmail / modmail

A Modmail bot for Discord. Allowing safe moderator conversations with server members one server at a time.
https://discord-modmail.readthedocs.io/
MIT License
15 stars 8 forks source link

scripts: add wrapper to run scripts by invoking the scripts module #111

Closed onerandomusername closed 3 years ago

onerandomusername commented 3 years ago

Description

Because there are so many upcoming scripts, (GH-75, GH-89) this adds a way to be able to shorten the interface to launch a script.

Rather than use python -m scripts.export_requirements, python -m scripts export_reqs can be used. Internally, scripts.export_requirements thinks it has been called the same way as if it was called directly.

This script can be thought of as a launcher for the scripts within the scripts module.

codecov[bot] commented 3 years ago

Codecov Report

Merging #111 (5a2a2e3) into main (92356fd) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #111   +/-   ##
=======================================
  Coverage   70.72%   70.72%           
=======================================
  Files          33       33           
  Lines        1602     1602           
  Branches      190      190           
=======================================
  Hits         1133     1133           
  Misses        438      438           
  Partials       31       31           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 92356fd...5a2a2e3. Read the comment docs.