package sbt

/** Specifies the Scope axes that should be used for an operation.  `true` indicates an axis should be used. */
final case class ScopeMask(project: Boolean = true, config: Boolean = true, task: Boolean = true, extra: Boolean = true) {
  def concatShow(p: String, c: String, t: String, sep: String, x: String): String =
    {
      val sb = new StringBuilder
      if (project) sb.append(p)
      if (config) sb.append(c)
      if (task) sb.append(t)
      sb.append(sep)
      if (extra) sb.append(x)
      sb.toString
    }
}