• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Gallopsled / pwntools / 11532588290

26 Oct 2024 02:29PM UTC coverage: 73.585% (+2.1%) from 71.491%
11532588290

push

github

peace-maker
Merge branch 'dev' into interactive

3767 of 6364 branches covered (59.19%)

1463 of 2234 new or added lines in 69 files covered. (65.49%)

85 existing lines in 22 files now uncovered.

13246 of 18001 relevant lines covered (73.58%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/pwnlib/commandline/update.py
1
#!/usr/bin/env python
2
from __future__ import absolute_import
1✔
3
from __future__ import division
1✔
4

5
import subprocess
1✔
6

7
import pwnlib.args
1✔
8
pwnlib.args.free_form = False
1✔
9

10
from pwn import *
1✔
11
from pwnlib.commandline import common
1✔
12

13
p = common.parser_commands.add_parser(
1✔
14
    'update',
15
    help = 'Check for pwntools updates',
16
    description = 'Check for pwntools updates'
17
)
18

19
p.add_argument('--install', action='store_true', help='''
1✔
20
    Install the update automatically.
21
''')
22

23
p.add_argument('--pre', action='store_true', help='''
1✔
24
    Check for pre-releases.
25
''')
26

27
def main(a):
1✔
28
    result = pwnlib.update.perform_check(prerelease=a.pre)
×
29
    if result and a.install:
×
30
        subprocess.check_call(result, shell=False)
×
31

32
if __name__ == '__main__':
1!
NEW
33
    pwnlib.commandline.common.main(__file__, main)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc