package cli

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. case class CliOptions(config: Option[Path] = None, baseConfig: ScalafmtConfig = ScalafmtConfig.uncheckedDefault, configStr: Option[String] = None, range: Set[Range] = Set.empty[Range], customFiles: Seq[Path] = Nil, customExcludes: Seq[String] = Nil, respectProjectFilters: Boolean = false, nonInteractive: Boolean = false, mode: Option[FileFetchMode] = None, assumeFilename: String = "stdin.scala", common: CommonOptions = CommonOptions(), gitOpsConstructor: Factory = GitOps.FactoryImpl, writeModeOpt: Option[WriteMode] = None, debug: Boolean = false, quiet: Boolean = false, stdIn: Boolean = false, noStdErr: Boolean = false, error: Boolean = false, check: Boolean = false, asyncFormat: Boolean = false) extends Product with Serializable
  2. case class CommonOptions(cwd: Option[AbsoluteFile] = None, out: PrintStream = System.out, in: InputStream = System.in, err: PrintStream = System.err, debug: PrintWriter = Output.NoopStream.printWriter, info: StreamOrWriter = Output.NoopStream) extends Product with Serializable
  3. final case class DiffFiles(branch: String) extends FileFetchMode with Product with Serializable

    A call to git diff --name-only --diff-filter=d <branch>

    A call to git diff --name-only --diff-filter=d <branch>

    When this is set, files passed via the cli are ignored.

  4. sealed abstract case class ExitCode extends Product with Serializable
  5. sealed trait FileFetchMode extends AnyRef

    Determines how we fetch files for formatting

  6. sealed abstract class InputMethod extends AnyRef
  7. class PlatformPollingScheduler extends PollingScheduler
  8. trait PollingScheduler extends AnyRef
  9. class ScalafmtCliReporter extends ScalafmtReporter
  10. trait ScalafmtRunner extends AnyRef
  11. sealed trait WriteMode extends AnyRef

    Determines the mode in which Scalafmt will behave

    Determines the mode in which Scalafmt will behave

    • Override: Replace the file with its formatted form
    • Stdout: Print the formatted file to Stdout (leaving the original file untouched)

Value Members

  1. case object ChangedFiles extends FileFetchMode with Product with Serializable

    A call to git status --porcelain

    A call to git status --porcelain

    When this is set, files passed via the cli are ignored.

  2. object Cli extends CliUtils
  3. object CliArgParser
  4. object CliOptions extends CliOptionsUtils with Serializable
  5. object CliUtils
  6. object ExitCode extends Serializable
  7. object FileFetchMode
  8. case object GitFiles extends FileFetchMode with Product with Serializable

    A call to git ls-files --name-only <dir>

  9. object InputMethod
  10. object Output
  11. object PollingScheduler
  12. case object RecursiveSearch extends FileFetchMode with Product with Serializable

    A simple recursive strategy where each directory is expanded

  13. object ScalafmtCoreRunner extends ScalafmtRunner
  14. object Terminal
  15. object WriteMode

Ungrouped