| 722 | } |
| 723 | |
| 724 | MetadataResult SetReadLineVersion(ShellState &state, const vector<string> &args) { |
| 725 | if (args[1] == "linenoise") { |
| 726 | #ifdef HAVE_LINENOISE |
| 727 | state.rl_version = ReadLineVersion::LINENOISE; |
| 728 | return MetadataResult::SUCCESS; |
| 729 | #else |
| 730 | state.Print("linenoise is not available in this build"); |
| 731 | return MetadataResult::FAIL; |
| 732 | #endif |
| 733 | } else if (args[1] == "fallback") { |
| 734 | state.rl_version = ReadLineVersion::FALLBACK; |
| 735 | return MetadataResult::SUCCESS; |
| 736 | } |
| 737 | return MetadataResult::PRINT_USAGE; |
| 738 | } |
| 739 | |
| 740 | MetadataResult SetPager(ShellState &state, const vector<string> &args) { |
| 741 | if (args.size() == 1) { |