mirror of https://github.com/MISP/PyTaxonomies
chg: Re-add script
parent
8823334519
commit
0e26f6f8ae
|
@ -4,7 +4,8 @@
|
|||
import argparse
|
||||
from pytaxonomies import Taxonomies
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
def main():
|
||||
argParser = argparse.ArgumentParser(description='Use MISP taxonomies')
|
||||
argParser.add_argument('-a', '--all', action='store_true', help='Print all taxonomies as machine tags')
|
||||
argParser.add_argument('-l', '--local', default=None, help='Use local manifest file.')
|
||||
|
@ -15,3 +16,7 @@ if __name__ == '__main__':
|
|||
t = Taxonomies()
|
||||
if args.all:
|
||||
print(t)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "pytaxonomies"
|
||||
version = "0.7"
|
||||
version = "0.8"
|
||||
description = "Python API for the taxonomies."
|
||||
authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
|
||||
license = "BSD-3-Clause"
|
||||
|
@ -42,6 +42,9 @@ jsonschema = "^3.2.0"
|
|||
nose = "^1.3.7"
|
||||
mypy = "^0.761"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
pytaxonomies = 'bin/pytaxonomies:main'
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
build-backend = "poetry.masonry.api"
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f8007816b4eb054dcd2d163ccdf4cf8f91bcc944
|
||||
Subproject commit 03e54796a2f81713971ef2a31b67ca05391e8e10
|
Loading…
Reference in New Issue