class ConfigAll(Config): """ All parameters for the run """ do_ps = ParamCreator.create_bool(default=True, help_string="do postscript?") do_pdf = ParamCreator.create_bool(default=True, help_string="do pdf?") do_debug = ParamCreator.create_bool(default=False, help_string="emit debug info?") unlink_ps = ParamCreator.create_bool( default=False, help_string="unlink the postscript file at the end?") do_qpdf = ParamCreator.create_bool( default=True, help_string="do you want to linearize the pdf file afterwards?") # we should work with warnings and try and solve all of them loglevel = ParamCreator.create_enum( enum_type=LilypondLogLevels, default=LilypondLogLevels.WARNING, help_string="what warning level do you want?", ) do_pdfred = ParamCreator.create_bool( default=False, help_string="should we reduce the pdf size?") # this should be set to True stop_on_output = ParamCreator.create_bool( default=True, help_string="should we stop on any output from the lilypond process?", ) # parameters without defaults (should be supplied by the user on the command line) ps = ParamCreator.create_new_file(help_string="postscript to produce") pdf = ParamCreator.create_new_file(help_string="pdf to produce") out = ParamCreator.create_str(help_string="pdf without suffix") ly = ParamCreator.create_existing_file(help_string="lilypond input")
class ConfigNames(Config): """ Parameters for names authorization repository """ repository = ParamCreator.create_existing_file( help_string="file where authorized strings are located", default="/home/mark/.mp3lib_authorized_non_ascii.json", ) repository_backup = ParamCreator.create_existing_file( help_string="file where authorized strings are located", default="/home/mark/.mp3lib_authorized_non_ascii.json.back", ) all_over = ParamCreator.create_bool( help_string="start from scratch", default=False, )
class ConfigYoutubeDl(Config): """ Configuration for youtube downloads """ use_archive = ParamCreator.create_bool( help_string="Should we use an archive?", default=True, ) archive_file = ParamCreator.create_existing_file( help_string="What file to use as archive?", default=os.path.expanduser('~/.config/youtube-dl-archive'), )
class ConfigJoin(Config): """ Parameters to configure a TSV join operation """ hash_file = ParamCreator.create_existing_file(help_string="hash file", ) hash_key_column = ParamCreator.create_int( help_string="column to match on in the hash file", ) hash_value_column = ParamCreator.create_int( help_string="value to get from the hash file", ) input_key_column = ParamCreator.create_int( help_string="column to match on in the input file", ) output_insert_column = ParamCreator.create_int( help_string= "column to insert at in the first file to create the output file", ) output_add_unknown = ParamCreator.create_bool( help_string="add UNKNOWN when there is no match or drop", )
class ConfigInputFile(Config): """ Parameters to specify input file """ input_file = ParamCreator.create_existing_file(help_string="input file", )