| 638 | } |
| 639 | |
| 640 | idx_t FindColorGroup(const vector<vector<string>> &groups, const string &name) { |
| 641 | optional_idx group_idx; |
| 642 | for (idx_t grp_idx = 0; grp_idx < groups.size(); grp_idx++) { |
| 643 | for (auto &group_name : groups[grp_idx]) { |
| 644 | if (StringUtil::Contains(name, group_name)) { |
| 645 | group_idx = grp_idx; |
| 646 | break; |
| 647 | } |
| 648 | } |
| 649 | } |
| 650 | if (!group_idx.IsValid()) { |
| 651 | throw InternalException("Color %s does not have a group", name); |
| 652 | } |
| 653 | return group_idx.GetIndex(); |
| 654 | } |
| 655 | |
| 656 | MetadataResult DisplayColors(ShellState &state, const vector<string> &args) { |
| 657 | bool bold = false; |
no test coverage detected