// Command // // Douglas Thrift // // $Id$ #include #include #include "Command.hpp" template Type CommandRunner::GetProperties(const cse::String &property, const cse::String &target) { Type properties; _S buffer(client.GetProperty(property, target)); ext::Buffer property_; while (ios::ReadLine(buffer, property_)) properties.Insert(property_); return properties; } template ext::RedBlackSet CommandRunner::GetProperties(const cse::String &properties, const cse::String &target); cse::String CommandRunner::GetPassword(const api::Path &directory) { api::Path path(directory.GetChild(_B(".GoogleTron.Password"))); cse::String password; if (path.Exists()) try { _S reader(path.GetPath()); password = ios::ReadLine(reader); } catch (ext::EosException) {} else password = ::getpass("Password:"); return password; }