Skip to content

Commit

Permalink
scalafix
Browse files Browse the repository at this point in the history
  • Loading branch information
romanowski committed Nov 16, 2022
1 parent 1c5d137 commit 2d216de
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import java.util.Base64
import scala.build.Logger
import scala.build.Ops.*
import scala.build.errors.{BuildException, CompositeBuildException, MalformedCliInputError}
import scala.cli.commands.ScalaCommand
import scala.cli.commands.publish.ConfigUtil.*
import scala.cli.commands.util.CommonOps.*
import scala.cli.commands.util.JvmUtils
import scala.cli.commands.{ScalaCommand, SpecificationLevel}
import scala.cli.config.{
ConfigDb,
Keys,
Expand All @@ -20,8 +20,6 @@ import scala.cli.config.{
RepositoryCredentials,
Secret
}
import scala.cli.commands.{ScalaCommand, SpecificationLevel}
import scala.cli.config.{ConfigDb, Keys, PasswordOption, Secret}

object Config extends ScalaCommand[ConfigOptions] {
override def hidden = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import java.util.Base64

import scala.build.EitherCps.{either, value}
import scala.build.Logger
import scala.cli.commands.ScalaCommand
import scala.cli.commands.publish.ConfigUtil.*
import scala.cli.commands.util.CommonOps.*
import scala.cli.commands.util.ScalaCliSttpBackend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ import scala.build.preprocessing.directives.{
RequireDirectiveHandler,
UsingDirectiveHandler
}
import scala.cli.ScalaCliCommands
import scala.cli.ScalaCli

import scala.cli.commands.{RestrictedCommandsParser, ScalaCommand, SpecificationLevel}
import shapeless.tag
import dotty.tools.dotc.ScalacCommand
import scala.cli.commands.tags
import scala.cli.commands.{RestrictedCommandsParser, ScalaCommand, SpecificationLevel, tags}
import scala.cli.{ScalaCli, ScalaCliCommands}

object GenerateReferenceDoc extends CaseApp[InternalDocOptions] {

Expand Down
10 changes: 5 additions & 5 deletions website/docs/reference/scala-command/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ sidebar_position: 3

# `scala` commands

This document is a specification of `scala` runner.
For now it uses documentation specific to Scala CLI but at some point it may be refactor to provide more abstract documentation.
Documentation is splitted into sections in the spirit of RFC keywords (`MUST`, `SHOULD`, `NICE TO HAVE`) including `IMPLEMENTATION` category,
that is reserved for commands that needs to be present for Scala CLI to work properly but should not be a part of an official API.
This document is a specification of the `scala` runner.
For now it uses documentation specific to Scala CLI but at some point it may be refactored to provide more abstract documentation.
Documentation is split into sections in the spirit of RFC keywords (`MUST`, `SHOULD`, `NICE TO HAVE`) including the `IMPLEMENTATION` category,
that is reserved for commands that need to be present for Scala CLI to work properly but should not be a part of the official API.

## MUST have commands:

Expand Down Expand Up @@ -101,7 +101,7 @@ Accepts option groups: [logging](./cli-options.md#logging-options), [verbosity](
## Implementation-specific commands
Commands that are used within Scala CLI that should be a part of the `scala` command but shouldn't be a part of specification.
Commands which are used within Scala CLI and should be a part of the `scala` command but aren't a part of the specification.
### about
Expand Down
6 changes: 3 additions & 3 deletions website/docs/reference/scala-command/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ sidebar_position: 2

**This document describes as scala-cli behaves if run as `scala` command. See more information in [SIP-46](https://github.com/scala/improvement-proposals/pull/46)**

This document is a specification of `scala` runner.
For now it uses documentation specific to Scala CLI but at some point it may be refactor to provide more abstract documentation.
Documentation is splitted into sections in the spirit of RFC keywords (`MUST`, `SHOULD`).
This document is a specification of the `scala` runner.
For now it uses documentation specific to Scala CLI but at some point it may be refactored to provide more abstract documentation.
Documentation is split into sections in the spirit of RFC keywords (`MUST`, `SHOULD`).

## MUST have directives:

Expand Down
4 changes: 2 additions & 2 deletions website/docs/reference/scala-command/runner-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ sidebar_position: 1
**This document describes proposed specification for Scala runner based on Scala CLI documentation as requested per [SIP-46](https://github.com/scala/improvement-proposals/pull/46)**

Commands and options are marked with MUST and SHOULD (in the RFC style) for ones applicable for Scala Runner.
Options and commands mark as **Implementation** that are needed for smooth running of Scala CLI.
Options and commands marked as **Implementation** are needed for smooth running of Scala CLI.
We recommend for those options and commands to be supported by the `scala` command (when based on Scala CLI) but not to be a part of the Scala Runner specification.

The proposed Scala runner specification should contains also supported `Using directives` defined in the dedicated [document](./directives.md)]
The proposed Scala runner specification should also contain supported `Using directives` defined in the dedicated [document](./directives.md)]

## Scalac options forwarding

Expand Down

0 comments on commit 2d216de

Please sign in to comment.