| 1639 | } |
| 1640 | |
| 1641 | static void print_job(color_ostream &out, ProtectedJob *pj) |
| 1642 | { |
| 1643 | if (!pj) |
| 1644 | return; |
| 1645 | |
| 1646 | df::job *job = pj->isLive() ? pj->actual_job : pj->job_copy; |
| 1647 | |
| 1648 | Job::printJobDetails(out, job); |
| 1649 | |
| 1650 | if (job->job_type == job_type::MeltMetalObject && |
| 1651 | isOptionEnabled(CF_AUTOMELT)) |
| 1652 | { |
| 1653 | if (meltable_count <= 0) |
| 1654 | out.color(COLOR_CYAN); |
| 1655 | else if (pj->want_resumed && !pj->isActuallyResumed()) |
| 1656 | out.color(COLOR_YELLOW); |
| 1657 | else |
| 1658 | out.color(COLOR_GREEN); |
| 1659 | out << " Meltable: " << meltable_count << " objects." << endl; |
| 1660 | out.reset_color(); |
| 1661 | } |
| 1662 | |
| 1663 | for (size_t i = 0; i < pj->constraints.size(); i++) |
| 1664 | print_constraint(out, pj->constraints[i], true, " "); |
| 1665 | } |
| 1666 | |
| 1667 | static command_result workflow_cmd(color_ostream &out, vector <string> & parameters) |
| 1668 | { |
no test coverage detected