You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
391 B
17 lines
391 B
#pragma once |
|
#include "actiondep.h" |
|
#include "merrors.h" |
|
|
|
using michlib::message; |
|
|
|
ADD_ACTION(Info, info, InfoSupported<Source>); |
|
|
|
template<class D> MString ActionInfo::DoAction(const CLArgs& args, D& data) |
|
{ |
|
auto resop = data.Open(args); |
|
if(resop.Exist()) return "Can't open source: " + resop; |
|
auto info = data.Info(); |
|
if(!info.Exist()) return "No info"; |
|
message(info); |
|
return ""; |
|
};
|
|
|