scripts: add wrapper to run scripts by invoking the scripts module#111
Merged
onerandomusername merged 4 commits intomainfrom Nov 14, 2021
Merged
scripts: add wrapper to run scripts by invoking the scripts module#111onerandomusername merged 4 commits intomainfrom
onerandomusername merged 4 commits intomainfrom
Conversation
Codecov Report
@@ 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.
|
Shivansh-007
approved these changes
Nov 8, 2021
Member
Shivansh-007
left a comment
There was a problem hiding this comment.
Add it as a task, otherwise LGTM!
to add scripts to the alias system, put them in the commands dictionary
this is apparently what click uses as the program description in the help menu
6f7a5ad to
c8b024f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_reqscan 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.