X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FExecutor.hh;h=81dafd9468b3e77e79ee630b98fec9dd75ced674;hb=80c6cb7ba9ad7776824c84809f422209adf27331;hp=d089083113176b545e54b723f1d97ea88ea801e1;hpb=d0776a27ffd63ab51b4e3419a8a6f87d11e60594;p=senf.git diff --git a/Console/Executor.hh b/Console/Executor.hh index d089083..81dafd9 100644 --- a/Console/Executor.hh +++ b/Console/Executor.hh @@ -58,13 +58,11 @@ namespace console { : boost::noncopyable { SENF_LOG_CLASS_AREA(); - SENF_LOG_DEFAULT_LEVEL( senf::log::NOTICE ); + SENF_LOG_DEFAULT_LEVEL( senf::log::VERBOSE ); public: /////////////////////////////////////////////////////////////////////////// // Types - typedef boost::iterator_range< ParseCommandInfo::argument_iterator> Arguments; - /// Thrown by built-in 'exit' command struct ExitException {}; @@ -77,9 +75,15 @@ namespace console { ///\} /////////////////////////////////////////////////////////////////////////// - void operator()(ParseCommandInfo const & command, std::ostream & output); + void execute(std::ostream & output, ParseCommandInfo const & command); + ///< Execute command + /**< Output will be written to \a output. + Same as operator()(). */ + + void operator()(std::ostream & output, ParseCommandInfo const & command); ///< Execute command - /**< Output will be written to \a output. */ + /**< Output will be written to \a output. + Same as execute(). */ DirectoryNode & cwd() const; ///< Current working directory protected: