mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Updates vendored subliminal to 2.1.0
Updates rarfile to 3.1 Updates stevedore to 3.5.0 Updates appdirs to 1.4.4 Updates click to 8.1.3 Updates decorator to 5.1.1 Updates dogpile.cache to 1.1.8 Updates pbr to 5.11.0 Updates pysrt to 1.1.2 Updates pytz to 2022.6 Adds importlib-metadata version 3.1.1 Adds typing-extensions version 4.1.1 Adds zipp version 3.11.0
This commit is contained in:
parent
d8da02cb69
commit
f05b09f349
694 changed files with 16621 additions and 11056 deletions
|
@ -40,8 +40,11 @@ def get_sha(args):
|
|||
|
||||
|
||||
def get_info(args):
|
||||
print("{name}\t{version}\t{released}\t{sha}".format(
|
||||
**_get_info(args.name)))
|
||||
if args.short:
|
||||
print("{version}".format(**_get_info(args.name)))
|
||||
else:
|
||||
print("{name}\t{version}\t{released}\t{sha}".format(
|
||||
**_get_info(args.name)))
|
||||
|
||||
|
||||
def _get_info(name):
|
||||
|
@ -86,7 +89,9 @@ def main():
|
|||
version=str(pbr.version.VersionInfo('pbr')))
|
||||
|
||||
subparsers = parser.add_subparsers(
|
||||
title='commands', description='valid commands', help='additional help')
|
||||
title='commands', description='valid commands', help='additional help',
|
||||
dest='cmd')
|
||||
subparsers.required = True
|
||||
|
||||
cmd_sha = subparsers.add_parser('sha', help='print sha of package')
|
||||
cmd_sha.set_defaults(func=get_sha)
|
||||
|
@ -96,6 +101,8 @@ def main():
|
|||
'info', help='print version info for package')
|
||||
cmd_info.set_defaults(func=get_info)
|
||||
cmd_info.add_argument('name', help='package to print info of')
|
||||
cmd_info.add_argument('-s', '--short', action="store_true",
|
||||
help='only display package version')
|
||||
|
||||
cmd_freeze = subparsers.add_parser(
|
||||
'freeze', help='print version info for all installed packages')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue