You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bumped up com.lihaoyi::os-lib version to 0.9.0 (#1649)
I tried to run the example but it did not work using the latest install and default configuration.
The dependency version was increased to run the example successfully.
Copy file name to clipboardExpand all lines: website/docs/getting_started.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -86,12 +86,12 @@ Scala CLI reuses most of its options across all of its commands.
86
86
87
87
One of the main strengths of Scala is its ecosystem. Scala CLI is designed in a way to expose the Scala ecosystem to all usages of Scala, and running the REPL is no exception.
88
88
89
-
To demonstrate this, let's start prototyping with [os-lib](https://github.com/com-lihaoyi/os-lib) — a Scala interface to common OS filesystem and subprocess methods. To experiment with `os-lib` in the REPL, we simply need to add the parameter `--dep com.lihaoyi::os-lib:0.7.8`, as shown here:
89
+
To demonstrate this, let's start prototyping with [os-lib](https://github.com/com-lihaoyi/os-lib) — a Scala interface to common OS filesystem and subprocess methods. To experiment with `os-lib` in the REPL, we simply need to add the parameter `--dep com.lihaoyi::os-lib:0.9.0`, as shown here:
90
90
91
91
<ChainedSnippets>
92
92
93
93
```bash ignore
94
-
scala-cli repl --dep com.lihaoyi::os-lib:0.7.8
94
+
scala-cli repl --dep com.lihaoyi::os-lib:0.9.0
95
95
```
96
96
97
97
```scala ignore
@@ -119,7 +119,7 @@ cd scala-cli-getting-started
119
119
Now we can write our logic in a file named `files.scala`:
120
120
121
121
```scala title=files.scala
122
-
//>usinglib"com.lihaoyi::os-lib:0.7.8"
122
+
//>usinglib"com.lihaoyi::os-lib:0.9.0"
123
123
124
124
deffilesByExtension(
125
125
extension: String,
@@ -129,7 +129,7 @@ def filesByExtension(
129
129
}
130
130
```
131
131
132
-
As you may have noticed, we specified a dependency within `files.scala` using the `//> using lib com.lihaoyi::os-lib:0.7.8` syntax. With Scala CLI, you can provide configuration information with `using` directives — a dedicated syntax that can be embedded in any `.scala` file. For more details, see our dedicated [guide for `using` directives](./guides/using-directives.md).
132
+
As you may have noticed, we specified a dependency within `files.scala` using the `//> using lib com.lihaoyi::os-lib:0.9.0` syntax. With Scala CLI, you can provide configuration information with `using` directives — a dedicated syntax that can be embedded in any `.scala` file. For more details, see our dedicated [guide for `using` directives](./guides/using-directives.md).
133
133
134
134
Now let's check if our code compiles. We do that by running:
0 commit comments