Skip to content

Commit

Permalink
Merge pull request #55 from ajinabraham/3.1.6
Browse files Browse the repository at this point in the history
Expose multiprocessing to cli args
  • Loading branch information
ajinabraham authored Nov 14, 2024
2 parents b8b4048 + 272cdc7 commit 73f3fc4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libsast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
__title__ = 'libsast'
__authors__ = 'Ajin Abraham'
__copyright__ = f'Copyright {year} Ajin Abraham, opensecurity.in'
__version__ = '3.1.5'
__version__ = '3.1.6'
__version_info__ = tuple(int(i) for i in __version__.split('.'))
__all__ = [
'Scanner',
Expand Down
7 changes: 7 additions & 0 deletions libsast/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ def main():
help='No of CPU cores to use. Use all cores by default',
type=int,
required=False)
parser.add_argument('-mp', '--multiprocessing',
help=('Multiprocessing strategy to use.'
' Options: default, thread, billiard'),
default='default',
type=str,
required=False)
parser.add_argument('-v', '--version',
help='Show libsast version',
required=False,
Expand All @@ -94,6 +100,7 @@ def main():
'ignore_paths': args.ignore_paths,
'show_progress': args.show_progress,
'cpu_core': args.cpu_core,
'multiprocessing': args.multiprocessing,
}
result = Scanner(options, args.path).scan()
output(args.output, result)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "libsast"
version = "3.1.5"
version = "3.1.6"
description = "A generic SAST library built on top of semgrep and regex"
keywords = ["libsast", "SAST", "Python SAST", "SAST API", "Regex SAST", "Pattern Matcher"]
authors = ["Ajin Abraham <[email protected]>"]
Expand Down

0 comments on commit 73f3fc4

Please sign in to comment.