package cli
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- 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) extends Product with Serializable
- case class CommonOptions(cwd: Option[AbsoluteFile] = None, out: PrintStream = System.out, in: InputStream = System.in, err: PrintStream = System.err, debug: PrintStream = NoopOutputStream.printStream, info: PrintStream = NoopOutputStream.printStream) extends Product with Serializable
- 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.
- sealed abstract case class ExitCode extends Product with Serializable
- sealed trait FileFetchMode extends AnyRef
Determines how we fetch files for formatting
- sealed abstract class InputMethod extends AnyRef
- class ScalafmtCliReporter extends ScalafmtReporter
- trait ScalafmtRunner extends AnyRef
- class TermDisplay extends Logger
- 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
- object Cache
- case object ChangedFiles extends FileFetchMode with Product with Serializable
A call to
git status --porcelainA call to
git status --porcelainWhen this is set, files passed via the cli are ignored.
- object Cli
- object CliArgParser
- object CliOptions extends Serializable
- object ExitCode extends Serializable
- object FileFetchMode
- case object GitFiles extends FileFetchMode with Product with Serializable
A call to
git ls-files --name-only <dir> - object InputMethod
- object NoopOutputStream extends OutputStream
- case object RecursiveSearch extends FileFetchMode with Product with Serializable
A simple recursive strategy where each directory is expanded
- object ScalafmtCoreRunner extends ScalafmtRunner
- object ScalafmtDynamicRunner extends ScalafmtRunner
- object TermDisplay
- object Terminal
- object WriteMode