bump pddb key listing limits

makes it a bit easier for debugging
This commit is contained in:
bunnie 2022-06-28 19:59:52 +08:00
parent 62372488df
commit 4fcc1ea173

View file

@ -166,15 +166,15 @@ impl<'a> ShellCmdApi<'a> for PddbCmd {
if let Some(dict) = tokens.next() {
match self.pddb.list_keys(dict, None) {
Ok(list) => {
let checked_len = if list.len() > 6 {
write!(ret, "First 6 keys of {}:", list.len()).unwrap();
6
let checked_len = if list.len() > 10 {
write!(ret, "First 10 keys of {}:", list.len()).unwrap();
10
} else {
list.len()
};
for i in 0..checked_len {
let sep = if i != checked_len - 1 {
", "
",\n"
} else {
""
};
@ -194,14 +194,14 @@ impl<'a> ShellCmdApi<'a> for PddbCmd {
match self.pddb.list_dict(None) {
Ok(list) => {
let checked_len = if list.len() > 6 {
write!(ret, "First 6 dicts of {}:", list.len()).unwrap();
6
write!(ret, "First 10 dicts of {}:", list.len()).unwrap();
10
} else {
list.len()
};
for i in 0..checked_len {
let sep = if i != checked_len - 1 {
", "
",\n"
} else {
""
};