cfg: generate_line use generate_file and pick_line