mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI
- Implemented ::getBinary. - Removed Context::program, and converted DOM and dom.t to call ::getBinary.
This commit is contained in:
parent
9799fcefed
commit
083b0cb0de
4 changed files with 11 additions and 2 deletions
|
@ -482,6 +482,15 @@ bool CLI::canonicalize (
|
|||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string CLI::getBinary () const
|
||||
{
|
||||
if (_args.size ())
|
||||
return _args[0].attribute ("raw");
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string CLI::getCommand () const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue