case class CliOptions(config: Option[Path] = None, configStr: Option[String] = None, range: Set[Range] = Set.empty[Range], customFiles: Seq[AbsoluteFile] = Nil, customExcludes: Seq[String] = Nil, writeMode: WriteMode = Override, testing: Boolean = false, stdIn: Boolean = false, quiet: Boolean = false, debug: Boolean = false, git: Option[Boolean] = None, nonInteractive: Boolean = false, diff: Option[String] = None, assumeFilename: String = "stdin.scala", migrate: Option[AbsoluteFile] = None, common: CommonOptions = CommonOptions(), gitOpsConstructor: (AbsoluteFile) ⇒ GitOps = x => new GitOpsImpl(x), noStdErr: Boolean = false) extends Product with Serializable
- Alphabetic
- By Inheritance
- CliOptions
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CliOptions(config: Option[Path] = None, configStr: Option[String] = None, range: Set[Range] = Set.empty[Range], customFiles: Seq[AbsoluteFile] = Nil, customExcludes: Seq[String] = Nil, writeMode: WriteMode = Override, testing: Boolean = false, stdIn: Boolean = false, quiet: Boolean = false, debug: Boolean = false, git: Option[Boolean] = None, nonInteractive: Boolean = false, diff: Option[String] = None, assumeFilename: String = "stdin.scala", migrate: Option[AbsoluteFile] = None, common: CommonOptions = CommonOptions(), gitOpsConstructor: (AbsoluteFile) ⇒ GitOps = x => new GitOpsImpl(x), noStdErr: Boolean = false)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val assumeFilename: String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val common: CommonOptions
- val config: Option[Path]
-
def
configPath: Path
- If --config-str is specified (and tempConfigPath is defined), this returns the path to a temporary file.
- If --config-str is specified (and tempConfigPath is defined), this returns the path to a temporary file. - If both tempConfigPath and config are None, this return the path to
.scalafmt.confon the working directory.- returns
A path to a configuration file
- val configStr: Option[String]
- val customExcludes: Seq[String]
- val customFiles: Seq[AbsoluteFile]
- val debug: Boolean
- val diff: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def excludeFilterRegexp: Regex
- val fileFetchMode: FileFetchMode
- val files: Seq[AbsoluteFile]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val git: Option[Boolean]
- val gitOps: GitOps
- val gitOpsConstructor: (AbsoluteFile) ⇒ GitOps
- val inPlace: Boolean
- def info: PrintStream
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val migrate: Option[AbsoluteFile]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noStdErr: Boolean
- val nonInteractive: Boolean
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val quiet: Boolean
- val range: Set[Range]
-
def
scalafmtConfig: Configured[ScalafmtConfig]
Parse the scalafmt configuration and try to encode it to
ScalafmtConfig.Parse the scalafmt configuration and try to encode it to
ScalafmtConfig. If--config-stris specified, this will parse the configuration string specified by--config-str. Otherwise, a contents of configuration file specified byconfigPathwill be parsed.If
--config-stris not specified and configuration file is missing, this will return the default configuration - val stdIn: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val testing: Boolean
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def withFiles(files: Seq[AbsoluteFile]): CliOptions
- val writeMode: WriteMode