- Implemented export.yaml, import (yaml).
- Updated man page.
- 'export' is now an alias to 'export.yaml'.
- Added missing 'tags' attribute as an internal Att.
- Improved recognition of YAML.
- Added unit tests for export.yaml, import (yaml).
- Added missing unlink from dependencies.t
This commit is contained in:
Paul Beckingham
2010-08-02 17:45:48 -04:00
parent f60205c704
commit e090f556da
10 changed files with 285 additions and 19 deletions

View File

@@ -405,15 +405,18 @@ std::string Task::composeYAML () const
Att::allNames (names);
std::sort (names.begin (), names.end ());
// Only include non-trivial attributes.
std::string value;
foreach (name, names)
out << " " << *name << ": " << get (*name) << "\n";
if ((value = get (*name)) != "")
out << " " << *name << ": " << value << "\n";
// Now the annotations, which are not listed by the Att::allNames call.
std::vector <Att> annotations;
getAnnotations (annotations);
foreach (a, annotations)
out << " annotation:\n"
<< " entry: " << a->name().substr (12) << "\n"
<< " entry: " << a->name().substr (11) << "\n"
<< " description: " << a->value () << "\n";
return out.str ();