Source code for upsies.uis.tui.commands.scene

"""
Searching for and verifying scene release
"""

import functools

from .... import jobs, utils
from .base import CommandBase






[docs] class scene_check(CommandBase): """ Verify scene release name and integrity If RELEASE is a scene release, make sure it has the correct file size(s) and is named properly. """ names = ('scene-check', 'scc') cli_arguments = { 'RELEASE': { 'type': utils.argtypes.release, 'help': 'Release name or path to release content', }, ('--predbs', '-p'): { 'type': utils.argtypes.comma_separated(utils.argtypes.predb), 'help': ('Case-insensitive predb name\n' 'Supported predbs: ' + ', '.join(utils.predbs.predb_names())), }, } @functools.cached_property def jobs(self): return ( jobs.scene.SceneCheckJob( home_directory=self.home_directory, cache_directory=self.cache_directory, ignore_cache=self.args.ignore_cache, content_path=self.args.RELEASE, predb=utils.predbs.MultiPredbApi(self.args.predbs), ), )