@DefaultCommand
public void show(final PipeOut out)
{
if (project.hasFacet(FacesFacet.class))
{
FacesFacet facet = project.getFacet(FacesFacet.class);
ShellMessages.info(out, "Displaying current JSF configuration:");
out.println();
out.println(out.renderColor(ShellColor.BOLD, "Project State: ") + facet.getProjectStage());
out.println(out.renderColor(ShellColor.BOLD, "FacesServlet Mappings: ") + facet.getFacesServletMappings());
out.println(out.renderColor(ShellColor.BOLD, "Faces Default Suffixes: ") + facet.getFacesDefaultSuffixes());
out.println(out.renderColor(ShellColor.BOLD, "Facelets Default Suffixes: ")
+ facet.getFaceletsDefaultSuffixes());
out.println(out.renderColor(ShellColor.BOLD, "Facelets View Mappings: ") + facet.getFaceletsViewMapping());
}
else
{
ShellMessages.info(out, "JSF is not installed. Use 'setup faces' to continue.");
}