Skip to content

Commit 5909da4

Browse files
author
Artem Korsakov
committed
Translate "Toolkit" into Russian
1 parent 7ec2ca6 commit 5909da4

18 files changed

+565
-0
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{% altDetails require-info-box 'Установка Cask' %}
2+
3+
{% tabs cask-install class=tabs-build-tool %}
4+
5+
{% tab 'Scala CLI' %}
6+
7+
Вы можете объявить зависимость от Cask с помощью следующей директивы `using`:
8+
9+
```scala
10+
//> using dep com.lihaoyi::cask::0.10.2
11+
```
12+
13+
{% endtab %}
14+
15+
{% tab 'sbt' %}
16+
17+
В файле `build.sbt` вы можете добавить зависимость от Cask:
18+
19+
```scala
20+
lazy val example = project.in(file("example"))
21+
.settings(
22+
scalaVersion := "3.4.2",
23+
libraryDependencies += "com.lihaoyi" %% "cask" % "0.10.2",
24+
fork := true
25+
)
26+
```
27+
28+
{% endtab %}
29+
30+
{% tab 'Mill' %}
31+
32+
В файле `build.sc` вы можете добавить зависимость от Cask:
33+
34+
```scala
35+
object example extends RootModule with ScalaModule {
36+
def scalaVersion = "3.4.2"
37+
def ivyDeps = Agg(
38+
ivy"com.lihaoyi::cask::0.10.2"
39+
)
40+
}
41+
```
42+
{% endtab %}
43+
44+
{% endtabs %}
45+
{% endaltDetails %}
+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{% altDetails install-info-box 'Установка MUnit' %}
2+
3+
{% tabs munit-unit-test-1 class=tabs-build-tool %}
4+
{% tab 'Scala CLI' %}
5+
6+
Вы можете запросить весь набор инструментов одной командой:
7+
8+
```scala
9+
//> using toolkit latest
10+
```
11+
12+
MUnit, будучи тестовым фреймворком, доступен только в тестовых файлах:
13+
файлах в каталоге `test` или тех, которые имеют расширение `.test.scala`.
14+
Подробнее о тестовой области (test scope) см. [в документации Scala CLI](https://scala-cli.virtuslab.org/docs/commands/test/).
15+
16+
В качестве альтернативы вы можете запросить только определенную версию MUnit:
17+
18+
```scala
19+
//> using dep org.scalameta::munit:1.1.0
20+
```
21+
22+
{% endtab %}
23+
24+
{% tab 'sbt' %}
25+
26+
В файле `build.sbt` вы можете добавить зависимость от toolkit-test:
27+
28+
```scala
29+
lazy val example = project.in(file("."))
30+
.settings(
31+
scalaVersion := "3.4.2",
32+
libraryDependencies += "org.scala-lang" %% "toolkit-test" % "0.7.0" % Test
33+
)
34+
```
35+
36+
Здесь конфигурация `Test` означает, что зависимость используется только исходными файлами в `src/test`.
37+
38+
В качестве альтернативы вы можете запросить только определенную версию MUnit:
39+
40+
```scala
41+
libraryDependencies += "org.scalameta" %% "munit" % "1.1.0" % Test
42+
```
43+
{% endtab %}
44+
45+
{% tab 'Mill' %}
46+
47+
В файле `build.sc` вы можете добавить объект `test`, расширяющий `Tests` и `TestModule.Munit`:
48+
49+
```scala
50+
object example extends ScalaModule {
51+
def scalaVersion = "3.4.2"
52+
object test extends Tests with TestModule.Munit {
53+
def ivyDeps =
54+
Agg(
55+
ivy"org.scala-lang::toolkit-test:0.7.0"
56+
)
57+
}
58+
}
59+
```
60+
61+
В качестве альтернативы вы можете запросить только определенную версию MUnit:
62+
63+
```scala
64+
ivy"org.scalameta::munit:1.1.0"
65+
```
66+
{% endtab %}
67+
{% endtabs %}
68+
{% endaltDetails %}
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{% altDetails require-info-box 'Установка OS-Lib' %}
2+
3+
{% tabs oslib-install class=tabs-build-tool %}
4+
5+
{% tab 'Scala CLI' %}
6+
7+
Вы можете запросить весь набор инструментов одной командой:
8+
9+
```scala
10+
//> using toolkit latest
11+
```
12+
13+
В качестве альтернативы вы можете запросить только определенную версию OS-Lib:
14+
15+
```scala
16+
//> using dep com.lihaoyi::os-lib:0.11.3
17+
```
18+
19+
{% endtab %}
20+
21+
{% tab 'sbt' %}
22+
23+
В файле `build.sbt` вы можете добавить зависимость от `toolkit`:
24+
25+
```scala
26+
lazy val example = project.in(file("."))
27+
.settings(
28+
scalaVersion := "3.4.2",
29+
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.7.0"
30+
)
31+
```
32+
33+
В качестве альтернативы вы можете запросить только определенную версию OS-Lib:
34+
35+
```scala
36+
libraryDependencies += "com.lihaoyi" %% "os-lib" % "0.11.3"
37+
```
38+
39+
{% endtab %}
40+
41+
{% tab 'Mill' %}
42+
43+
В файле `build.sc` вы можете добавить зависимость от `toolkit`:
44+
45+
```scala
46+
object example extends ScalaModule {
47+
def scalaVersion = "3.4.2"
48+
def ivyDeps =
49+
Agg(
50+
ivy"org.scala-lang::toolkit:0.7.0"
51+
)
52+
}
53+
```
54+
55+
В качестве альтернативы вы можете запросить только определенную версию OS-Lib:
56+
57+
```scala
58+
ivy"com.lihaoyi::os-lib:0.11.3"
59+
```
60+
61+
{% endtab %}
62+
63+
{% endtabs %}
64+
{% endaltDetails %}
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
{% altDetails install-info-box 'Установка sttp' %}
3+
4+
{% tabs sttp-install-methods class=tabs-build-tool%}
5+
6+
{% tab 'Scala CLI' %}
7+
8+
Вы можете запросить весь набор инструментов одной командой:
9+
10+
```scala
11+
//> using toolkit latest
12+
```
13+
14+
В качестве альтернативы вы можете запросить только определенную версию sttp:
15+
16+
```scala
17+
//> using dep com.softwaremill.sttp.client4::core:4.0.0-RC1
18+
```
19+
20+
{% endtab %}
21+
22+
{% tab 'sbt' %}
23+
24+
В файле `build.sbt` вы можете добавить зависимость от `toolkit`:
25+
26+
```scala
27+
lazy val example = project.in(file("."))
28+
.settings(
29+
scalaVersion := "3.4.2",
30+
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.7.0"
31+
)
32+
```
33+
34+
В качестве альтернативы вы можете запросить только определенную версию sttp:
35+
36+
```scala
37+
libraryDependencies += "com.softwaremill.sttp.client4" %% "core" % "4.0.0-RC1"
38+
```
39+
40+
{% endtab %}
41+
42+
{% tab 'Mill' %}
43+
44+
В файле `build.sc` вы можете добавить зависимость от `toolkit`:
45+
46+
```scala
47+
object example extends ScalaModule {
48+
def scalaVersion = "3.4.2"
49+
def ivyDeps =
50+
Agg(
51+
ivy"org.scala-lang::toolkit:0.7.0"
52+
)
53+
}
54+
```
55+
56+
В качестве альтернативы вы можете запросить только определенную версию sttp:
57+
58+
```scala
59+
ivy"com.softwaremill.sttp.client4::core:4.0.0-RC1"
60+
```
61+
62+
{% endtab %}
63+
{% endtabs %}
64+
{% endaltDetails %}
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
{% altDetails install-info-box 'Установка upickle' %}
3+
4+
{% tabs upickle-install-methods class=tabs-build-tool %}
5+
6+
{% tab 'Scala CLI' %}
7+
8+
Вы можете запросить весь набор инструментов одной командой:
9+
10+
```scala
11+
//> using toolkit latest
12+
```
13+
14+
В качестве альтернативы вы можете запросить только определенную версию UPickle:
15+
16+
```scala
17+
//> using dep com.lihaoyi::upickle:4.1.0
18+
```
19+
20+
{% endtab %}
21+
22+
{% tab 'sbt' %}
23+
24+
В файле `build.sbt` вы можете добавить зависимость от `toolkit`:
25+
26+
```scala
27+
lazy val example = project.in(file("."))
28+
.settings(
29+
scalaVersion := "3.4.2",
30+
libraryDependencies += "org.scala-lang" %% "toolkit" % "0.7.0"
31+
)
32+
```
33+
34+
В качестве альтернативы вы можете запросить только определенную версию UPickle:
35+
36+
```scala
37+
libraryDependencies += "com.lihaoyi" %% "upickle" % "4.1.0"
38+
```
39+
40+
{% endtab %}
41+
42+
{% tab 'Mill' %}
43+
44+
В файле `build.sc` вы можете добавить зависимость от `toolkit`:
45+
46+
```scala
47+
object example extends ScalaModule {
48+
def scalaVersion = "3.4.2"
49+
def ivyDeps =
50+
Agg(
51+
ivy"org.scala-lang::toolkit:0.7.0"
52+
)
53+
}
54+
```
55+
56+
В качестве альтернативы вы можете запросить только определенную версию UPickle:
57+
58+
```scala
59+
ivy"com.lihaoyi::upickle:4.1.0"
60+
```
61+
62+
{% endtab %}
63+
{% endtabs %}
64+
{% endaltDetails %}

_overviews/toolkit/http-client-intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Sending HTTP requests with sttp
33
type: chapter
44
description: The introduction of the sttp library
55
num: 23
6+
languages: [ru]
67
previous-page: json-what-else
78
next-page: http-client-request
89
---

_overviews/toolkit/introduction.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Introduction
33
type: chapter
44
description: Introducing the Scala Toolkit tutorials
55
num: 1
6+
languages: [ru]
67
previous-page:
78
next-page: testing-intro
89
toolkit-index:

_overviews/toolkit/json-intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Handling JSON with uPickle
33
type: chapter
44
description: Description of the uPickle library.
55
num: 16
6+
languages: [ru]
67
previous-page: os-what-else
78
next-page: json-parse
89
---

_overviews/toolkit/os-intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Working with files and processes with OS-Lib
33
type: chapter
44
description: The introduction of the OS-lib library
55
num: 10
6+
languages: [ru]
67
previous-page: testing-what-else
78
next-page: os-read-directory
89
---

_overviews/toolkit/testing-intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Testing with MUnit
33
type: chapter
44
description: The introduction of the MUnit library
55
num: 2
6+
languages: [ru]
67
previous-page: introduction
78
next-page: testing-suite
89
---

_overviews/toolkit/web-server-intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Building web servers with Cask
33
type: chapter
44
description: The introduction of the Cask library
55
num: 30
6+
languages: [ru]
67
previous-page: http-client-what-else
78
next-page: web-server-static
89
---

_ru/toolkit/OrderedListOfMdFiles

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
introduction.md
2+
testing-intro.md
3+
testing-suite.md
4+
testing-run.md
5+
testing-run-only.md
6+
testing-exceptions.md
7+
testing-asynchronous.md
8+
testing-resources.md
9+
testing-what-else.md
10+
os-intro.md
11+
os-read-directory.md
12+
os-read-file.md
13+
os-write-file.md
14+
os-run-process.md
15+
os-what-else.md
16+
json-intro.md
17+
json-parse.md
18+
json-modify.md
19+
json-deserialize.md
20+
json-serialize.md
21+
json-files.md
22+
json-what-else.md
23+
http-client-intro.md
24+
http-client-request.md
25+
http-client-uris.md
26+
http-client-request-body.md
27+
http-client-json.md
28+
http-client-upload-file.md
29+
http-client-what-else.md
30+
web-server-intro.md
31+
web-server-static.md
32+
web-server-dynamic.md
33+
web-server-query-parameters.md
34+
web-server-input.md
35+
web-server-websockets.md
36+
web-server-cookies-and-decorators.md

0 commit comments

Comments
 (0)