class ConfigScan(Config): """ Parameters that control the scanning phase """ folder = ParamCreator.create_existing_folder( help_string="Which folder to work on?", default=".", )
class ConfigRepository(Config): """ Parameters to specify the repository """ folder = ParamCreator.create_existing_folder( help_string="where is the repository", default="/mnt/seagate/mark/topics_archive/audio/abooks/by_name", )
class ConfigSymlinkInstall(Config): """ Parameters for the symlink install tool """ source_folder = ParamCreator.create_existing_folder( help_string="Which folder to install from?", ) target_folder = ParamCreator.create_existing_folder( help_string="Which folder to install to?", ) recurse = ParamCreator.create_bool( help_string="should I recurse?", default=True, ) doit = ParamCreator.create_bool( help_string="actually perform the actions?", default=True, ) debug = ParamCreator.create_bool( help_string="print what we are doing?", default=True, ) force = ParamCreator.create_bool( help_string="remove target files if they are links?", default=True, )
class ConfigDownload(Config): """ Configure details about the download process """ download_as_collecting = ParamCreator.create_bool( help_string="Do you want download while collecting the urls?", default=False, ) download = ParamCreator.create_bool( help_string="really download or just print the urls?", default=True, ) folder = ParamCreator.create_existing_folder( help_string="where to save the data to?", default=".", )