Coverage for /usr/local/lib/python3.11/dist-packages/pyrocko/squirrel/tool/commands/snuffler.py: 50%

10 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-10-11 11:01 +0000

1# http://pyrocko.org - GPLv3 

2# 

3# The Pyrocko Developers, 21st Century 

4# ---|P------/S----------~Lg---------- 

5 

6''' 

7Implementation of :app:`squirrel snuffler`. 

8''' 

9 

10 

11headline = 'Experimental Squirrel-powered Snuffler.' 

12 

13 

14def make_subparser(subparsers): 

15 return subparsers.add_parser( 

16 'snuffler', 

17 help=headline, 

18 description=headline) 

19 

20 

21def setup(parser): 

22 parser.add_squirrel_selection_arguments() 

23 

24 

25def run(parser, args): 

26 squirrel = args.make_squirrel() 

27 squirrel.downloads_enabled = False 

28 squirrel.pile.snuffle()