mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Enhancement - Path integration
- Obsoleted util.cpp spit, slurp calls
This commit is contained in:
parent
a8f03679ed
commit
abffaa184b
8 changed files with 19 additions and 110 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <unistd.h>
|
||||
#include <Context.h>
|
||||
#include <StringTable.h>
|
||||
#include <File.h>
|
||||
#include <util.h>
|
||||
#include <test.h>
|
||||
|
||||
|
@ -39,7 +40,7 @@ int main (int argc, char** argv)
|
|||
|
||||
// Create a string file.
|
||||
std::string file = "./strings.xx-XX";
|
||||
spit (file, "# comment\n1 found");
|
||||
File::write (file, "# comment\n1 found");
|
||||
t.is (access (file.c_str (), F_OK), 0, "strings.xx-XX created.");
|
||||
|
||||
// Load the string file.
|
||||
|
|
|
@ -514,10 +514,6 @@ int main (int argc, char** argv)
|
|||
|
||||
// TODO const std::string uuid ();
|
||||
|
||||
// TODO bool slurp (const std::string&, std::vector <std::string>&, bool trimLines = false);
|
||||
// TODO bool slurp (const std::string&, std::string&, bool trimLines = false);
|
||||
// TODO void spit (const std::string&, const std::string&);
|
||||
|
||||
// std::string taskDiff (const Task&, const Task&);
|
||||
Task left;
|
||||
left.set ("zero", "0");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue