Config: Migrated to libshared Configuration

This commit is contained in:
Paul Beckingham
2017-02-26 10:46:51 -05:00
parent a31434fd48
commit dd4fef6794
9 changed files with 19 additions and 125 deletions

View File

@@ -163,16 +163,17 @@ int CmdDiagnostics::execute (std::string& output)
<< "\n\n";
// Config: .taskrc found, readable, writable
File rcFile (context.config.file ());
out << bold.colorize (STRING_CMD_DIAG_CONFIG)
<< '\n'
<< " File: " << context.config._original_file._data << ' '
<< (context.config._original_file.exists ()
<< " File: " << rcFile._data << ' '
<< (rcFile.exists ()
? STRING_CMD_DIAG_FOUND
: STRING_CMD_DIAG_MISSING)
<< ", " << context.config._original_file.size () << ' ' << "bytes"
<< ", " << rcFile.size () << ' ' << "bytes"
<< ", mode "
<< std::setbase (8)
<< context.config._original_file.mode ()
<< rcFile.mode ()
<< '\n';
// Config: data.location found, readable, writable