Skip to content

Commit

Permalink
Update libraries and outdated syntax in gifs
Browse files Browse the repository at this point in the history
  • Loading branch information
lwronski committed Mar 17, 2023
1 parent e823edc commit d1200f4
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion gifs/scenarios/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ EOF
pe 'scala-cli fmt .'
p "cat Main.scala"
rougify --theme tulip Main.scala
pe 'scala-cli package .'
pe 'scala-cli --power package .'
doSleep 4
echo " " && echo "ok" > status.txt
fi
6 changes: 3 additions & 3 deletions gifs/scenarios/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
if [[ -z "${ASCIINEMA_REC}" ]]; then
# Warm up scala-cli
echo "println(1)" | scala-cli -
cat <<EOF > demo.test.scala |
//> using lib "org.scalameta::munit:0.7.29"
cat <<EOF > demo.test.scala |
//> using dep "org.scalameta::munit:0.7.29"
EOF
scala-cli test demo.test.scala
# or do other preparation (e.g. create code)
Expand Down Expand Up @@ -56,7 +56,7 @@ EOF
clearConsole

cat <<EOF | updateFile demo.test.scala
//> using lib "org.scalameta::munit:0.7.29"
//> using dep "org.scalameta::munit:0.7.29"
class demoTest extends munit.FunSuite {
test("test nice args") {
Expand Down
8 changes: 4 additions & 4 deletions gifs/scenarios/powerful_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)

if [[ -z "${ASCIINEMA_REC}" ]]; then
# Warm up scala-cli
echo '//> using lib "com.lihaoyi::os-lib:0.7.8"' | scala-cli -
echo '//> using lib "com.lihaoyi::pprint:0.6.6"' | scala-cli -
echo '//> using dep "com.lihaoyi::os-lib:0.9.1"' | scala-cli -
echo '//> using dep "com.lihaoyi::pprint:0.8.1"' | scala-cli -
# or do other preparation (e.g. create code)
else
. $SCRIPT_DIR/../demo-magic.sh
Expand All @@ -20,8 +20,8 @@ else

# Put your stuff here
cat <<EOF | updateFile stat.sc
//> using lib "com.lihaoyi::os-lib:0.7.8"
//> using lib "com.lihaoyi::pprint:0.6.6"
//> using dep "com.lihaoyi::os-lib:0.9.1"
//> using dep "com.lihaoyi::pprint:0.8.1"
import pprint._
import os._
Expand Down
5 changes: 3 additions & 2 deletions gifs/scenarios/projects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
if [[ -z "${ASCIINEMA_REC}" ]]; then
# Warm up scala-cli
echo "println(1)" | scala-cli -S 2.13.6 -
echo "//> using lib \"com.softwaremill.sttp.client3::core:3.3.18\" " | scala-cli -S 2.13.6 -
echo "//> using dep \"com.softwaremill.sttp.client3::core:3.8.13\" " | scala-cli -S 2.13.6 -
scala-cli config suppress-warning.outdated-dependencies-files true
# or do other preparation (e.g. create code)
else
. $SCRIPT_DIR/../demo-magic.sh
Expand All @@ -20,7 +21,7 @@ else

# Put your stuff here
cat <<EOF | updateFile Post.scala
//> using lib "com.softwaremill.sttp.client3::core:3.3.18"
//> using dep "com.softwaremill.sttp.client3::core:3.3.18"
import sttp.client3._
// https://sttp.softwaremill.com/en/latest/quickstart.html
Expand Down
4 changes: 2 additions & 2 deletions gifs/scenarios/scripting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
if [[ -z "${ASCIINEMA_REC}" ]]; then
# Warm up scala-cli
echo "println(1)" | scala-cli -
echo "//> using lib \"com.lihaoyi::os-lib::0.7.8\"" | scala-cli -
echo "//> using dep \"com.lihaoyi::os-lib::0.9.1\"" | scala-cli -
# or do other preparation (e.g. create code)
else
. $SCRIPT_DIR/../demo-magic.sh
Expand All @@ -24,7 +24,7 @@ Hello World from file
EOF

cat <<EOF | updateFile script.sc
//> using lib "com.lihaoyi::os-lib::0.7.8"
//> using dep "com.lihaoyi::os-lib::0.9.1"
val filePath = os.pwd / "file"
val fileContent = os.read(filePath)
Expand Down
2 changes: 1 addition & 1 deletion gifs/scenarios/todo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ else

# Put your stuff here

pe "scala-cli about"
pe "scala-cli version"
pe "echo 'println(\"TODO\")' | scala-cli -"

# Wait a bit to read output of last command
Expand Down
Binary file modified website/static/img/dark/gifs/defaults.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/dark/gifs/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/dark/gifs/powerful_scripts.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/dark/gifs/projects.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/dark/gifs/scripting.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/dark/gifs/todo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/gifs/defaults.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/gifs/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/gifs/powerful_scripts.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/gifs/projects.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/gifs/scripting.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/static/img/gifs/todo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1200f4

Please sign in to comment.