from ..meta import Executor


class BCFilesQuery(Executor):
  @staticmethod
  def setup_parser(parser):
    parser.add_argument('-p', '--package', type=str, help="Only the bc files in a package")

  @staticmethod
  def execute(args):
    bc_files = args.db.bc_files(package=args.package)
    for bc_file in bc_files:
      print(bc_file)
