mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +02:00
util: Sends all read input to debug output
This commit is contained in:
parent
18046ae92d
commit
70e4d16768
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,7 @@ bool confirm (const std::string& question)
|
||||||
|
|
||||||
std::string answer {""};
|
std::string answer {""};
|
||||||
std::getline (std::cin, answer);
|
std::getline (std::cin, answer);
|
||||||
|
context.debug ("STDIN '" + answer + "'");
|
||||||
answer = std::cin.eof() ? STRING_UTIL_CONFIRM_NO : lowerCase (trim (answer));
|
answer = std::cin.eof() ? STRING_UTIL_CONFIRM_NO : lowerCase (trim (answer));
|
||||||
|
|
||||||
autoComplete (answer, options, matches, 1); // Hard-coded 1.
|
autoComplete (answer, options, matches, 1); // Hard-coded 1.
|
||||||
|
@ -112,6 +113,7 @@ int confirm4 (const std::string& question)
|
||||||
|
|
||||||
std::string answer {""};
|
std::string answer {""};
|
||||||
std::getline (std::cin, answer);
|
std::getline (std::cin, answer);
|
||||||
|
context.debug ("STDIN '" + answer + "'");
|
||||||
answer = trim (answer);
|
answer = trim (answer);
|
||||||
autoComplete (answer, options, matches, 1); // Hard-coded 1.
|
autoComplete (answer, options, matches, 1); // Hard-coded 1.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue