зеркало из https://github.com/mozilla/bugbug.git
Add a main function to all console_scripts so they are more easily runnable (#936)
Fixes #831
This commit is contained in:
Родитель
8b59321c5f
Коммит
6e1479bc30
|
@ -94,3 +94,7 @@ def main():
|
|||
args = parser.parse_args()
|
||||
|
||||
classify_bugs(args.model, args.classifier, args.bug_id)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -134,3 +134,7 @@ def main():
|
|||
|
||||
retriever = Retriever()
|
||||
retriever.retrieve_bugs()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -51,3 +51,7 @@ def main():
|
|||
|
||||
checker = ModelChecker()
|
||||
checker.go(args.model)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -164,3 +164,7 @@ def main():
|
|||
|
||||
classifier = CommitClassifier(getattr(args, "cache-root"))
|
||||
classifier.classify(args.diff_id)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -50,3 +50,7 @@ def main():
|
|||
retriever = Retriever(getattr(args, "cache-root"))
|
||||
|
||||
retriever.retrieve_commits()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -80,3 +80,7 @@ def main():
|
|||
args = parser.parse_args()
|
||||
|
||||
generate_sheet(args.model, args.token, args.days, args.threshold)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -122,3 +122,7 @@ def main():
|
|||
)
|
||||
|
||||
generator.generate()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Загрузка…
Ссылка в новой задаче