]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Update sbt help (#487)
authorIgnacio Taranto <ignacio_taranto@protonmail.com>
Fri, 25 Jul 2025 19:46:22 +0000 (16:46 -0300)
committerGitHub <noreply@github.com>
Fri, 25 Jul 2025 19:46:22 +0000 (21:46 +0200)
This is based on sbt's official documentation:
https://www.scala-sbt.org/1.x/docs/Command-Line-Reference.html

Additionally, there were some other suggestions for setting `SBT_OPTS`
in this issue: https://github.com/sbt/sbt/issues/3681

programs/sbt.json

index fdfc9128c357d7731f6efe95177ddbcef6422ddf..a8d8e5ac49602e0f9ac8c02d828467c9f48eec72 100644 (file)
@@ -1,15 +1,15 @@
 {
-    "name": "sbt",
     "files": [
         {
-            "path": "$HOME/.sbt",
+            "help": "Export the following environment variable:\n\n```bash\nexport SBT_OPTS=\"\\\n-Dsbt.global.base=${XDG_DATA_HOME}/sbt/1.0 \\\n-Dsbt.boot.directory=${XDG_CACHE_HOME}/sbt/boot \\\n-Dsbt.repository.config=${XDG_CACHE_HOME}/sbt/repositories \\\n-Dsbt.ivy.home=${XDG_CACHE_HOME}/ivy2\"\n```\n\nSee https://github.com/sbt/sbt/issues/3681 for more information.\n",
             "movable": true,
-            "help": "Alias sbt to use correct locations:\n\n```bash\nalias sbt=\"sbt -ivy $XDG_DATA_HOME/ivy2 -sbt-dir $XDG_DATA_HOME/sbt\"\n```\n"
+            "path": "$HOME/.sbt"
         },
         {
-            "path": "$HOME/.ivy2",
+            "help": "Export the following environment variable:\n\n```bash\nexport SBT_OPTS=\"\\\n-Dsbt.global.base=${XDG_DATA_HOME}/sbt/1.0 \\\n-Dsbt.boot.directory=${XDG_CACHE_HOME}/sbt/boot \\\n-Dsbt.repository.config=${XDG_CACHE_HOME}/sbt/repositories \\\n-Dsbt.ivy.home=${XDG_CACHE_HOME}/ivy2\"\n```\n\nSee https://github.com/sbt/sbt/issues/3681 for more information.\n",
             "movable": true,
-            "help": "Alias sbt to use correct locations:\n\n```bash\nalias sbt=\"sbt -ivy $XDG_DATA_HOME/ivy2 -sbt-dir $XDG_DATA_HOME/sbt\"\n```\n"
+            "path": "$HOME/.ivy2"
         }
-    ]
-}
+    ],
+    "name": "sbt"
+}
\ No newline at end of file