Skip to content

Commit 06a0b66

Browse files
committed
rename and bump zio-tui
1 parent bbd00ec commit 06a0b66

File tree

5 files changed

+38
-35
lines changed

5 files changed

+38
-35
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,22 @@ jobs:
5252
uses: svenstaro/upx-action@v2
5353
if: ${{ startsWith(github.ref, 'refs/tags/') }}
5454
with:
55-
file: target/graalvm-native-image/scala-interactive-update
55+
file: target/graalvm-native-image/scala-update
5656
args: --best --lzma
5757

5858
- name: upload ${{ matrix.os }}
5959
uses: actions/upload-artifact@v2
6060
if: ${{ startsWith(github.ref, 'refs/tags/') }}
6161
with:
6262
name: ${{ matrix.artifact-name }}
63-
path: target/graalvm-native-image/scala-interactive-update
63+
path: target/graalvm-native-image/scala-update
6464

6565
- name: release binaries
6666
uses: svenstaro/upload-release-action@v2
6767
if: ${{ startsWith(github.ref, 'refs/tags/') }}
6868
with:
6969
repo_token: ${{ secrets.GITHUB_TOKEN }}
70-
file: target/graalvm-native-image/scala-interactive-update
70+
file: target/graalvm-native-image/scala-update
7171
asset_name: ${{ matrix.artifact-name }}
7272
overwrite: true
7373
tag: ${{ github.ref }}
@@ -81,6 +81,6 @@ jobs:
8181
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
8282
if: ${{ matrix.os == 'macos' && startsWith(github.ref, 'refs/tags/') }}
8383
run: |
84-
brew tap kitlangton/scala-interactive-update
85-
brew bump-formula-pr kitlangton/scala-interactive-update/scala-interactive-update -f --no-browse --no-audit \
86-
--url="https://github.com/kitlangton/scala-interactive-update/releases/download/${{ steps.get_version.outputs.version }}/${{ matrix.artifact-name }}"
84+
brew tap kitlangton/tap
85+
brew bump-formula-pr kitlangton/tap/scala-update -f --no-browse --no-audit \
86+
--url="https://github.com/kitlangton/scala-update/releases/download/${{ steps.get_version.outputs.version }}/${{ matrix.artifact-name }}"

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# scala-interactive-update
1+
# scala-update
22
[![Release Artifacts][Badge-SonatypeReleases]][Link-SonatypeReleases]
33

44
Update your Scala dependencies (both libraries and plugins) interactively. [Video Demo](https://twitter.com/kitlangton/status/1541417514823028740).
@@ -8,7 +8,7 @@ Update your Scala dependencies (both libraries and plugins) interactively. [Vide
88
### Homebrew (Mac Only)
99

1010
```shell
11-
brew install kitlangton/scala-interactive-update/scala-interactive-update
11+
brew install kitlangton/tap/scala-update
1212
```
1313

1414
*If you'd like slightly faster binaries on an M1 mac, install manually with GraalVM (the next step).*
@@ -19,17 +19,17 @@ brew install kitlangton/scala-interactive-update/scala-interactive-update
1919

2020
```shell
2121
sbt 'show graalvm-native-image:packageBin'
22-
# [info] ~/code/sbt-interactive-update/target/graalvm-native-image/scala-interactive-update
22+
# [info] ~/code/sbt-interactive-update/target/graalvm-native-image/scala-update
2323
```
2424

2525
2. Move the generated binary onto your `PATH`.
2626

2727
## Usage
2828

29-
Run the binary from within an sbt project folder.
29+
Run the command from within an sbt project folder.
3030

3131
```shell
32-
scala-interactive-update
32+
scala-update
3333
```
3434

3535
<img width="832" alt="CleanShot 2022-06-27 at 09 15 23@2x" src="https://user-images.githubusercontent.com/7587245/175950420-9e645dc9-f140-43f2-ad60-1c88198fa8dc.png">
@@ -58,7 +58,7 @@ If a dependency has multiple possible update version—for instance, a new major
5858

5959
I have another library, [zio-tui](https://github.com/kitlangton/zio-tui), for creating interactive command line interactive programs just like this one.
6060

61-
[Badge-SonatypeReleases]: https://img.shields.io/nexus/r/https/oss.sonatype.org/io.github.kitlangton/scala-interactive-update_2.13.svg "Sonatype Releases"
62-
[Badge-SonatypeSnapshots]: https://img.shields.io/nexus/s/https/oss.sonatype.org/io.github.kitlangton/scala-interactive-update_2.13.svg "Sonatype Snapshots"
63-
[Link-SonatypeSnapshots]: https://oss.sonatype.org/content/repositories/snapshots/io/github/kitlangton/scala-interactive-update_2.13/ "Sonatype Snapshots"
64-
[Link-SonatypeReleases]: https://oss.sonatype.org/content/repositories/releases/io/github/kitlangton/scala-interactive-update_2.13/ "Sonatype Releases"
61+
[Badge-SonatypeReleases]: https://img.shields.io/nexus/r/https/oss.sonatype.org/io.github.kitlangton/scala-update_2.13.svg "Sonatype Releases"
62+
[Badge-SonatypeSnapshots]: https://img.shields.io/nexus/s/https/oss.sonatype.org/io.github.kitlangton/scala-update_2.13.svg "Sonatype Snapshots"
63+
[Link-SonatypeSnapshots]: https://oss.sonatype.org/content/repositories/snapshots/io/github/kitlangton/scala-update_2.13/ "Sonatype Snapshots"
64+
[Link-SonatypeReleases]: https://oss.sonatype.org/content/repositories/releases/io/github/kitlangton/scala-update_2.13/ "Sonatype Releases"

build.sbt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
inThisBuild(
22
List(
3-
name := "scala-interactive-update",
4-
normalizedName := "scala-interactive-update",
3+
name := "scala-update",
4+
normalizedName := "scala-update",
55
organization := "io.github.kitlangton",
66
scalaVersion := "2.13.8",
77
crossScalaVersions := Seq("2.13.8"),
8-
homepage := Some(url("https://github.com/kitlangton/scala-interactive-update")),
8+
homepage := Some(url("https://github.com/kitlangton/scala-update")),
99
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
1010
semanticdbEnabled := true,
1111
semanticdbVersion := scalafixSemanticdb.revision,
@@ -20,13 +20,15 @@ inThisBuild(
2020
)
2121
)
2222

23-
val zioVersion = "2.0.0"
24-
val zioNioVersion = "2.0.0"
25-
val coursierVersion = "2.1.0-M6-28-gbad85693f"
23+
val zioVersion = "2.0.0"
24+
val zioNioVersion = "2.0.0"
25+
val coursierVersion = "2.1.0-M6-28-gbad85693f"
26+
val zioTuiVersion = "0.1.3"
27+
val scalaMetaVersion = "4.5.9"
2628

2729
lazy val root = (project in file("."))
2830
.settings(
29-
name := "scala-interactive-update",
31+
name := "scala-update",
3032
libraryDependencies ++= Seq(
3133
"dev.zio" %% "zio" % zioVersion,
3234
"dev.zio" %% "zio-macros" % zioVersion,
@@ -35,8 +37,8 @@ lazy val root = (project in file("."))
3537
"dev.zio" %% "zio-test" % zioVersion % Test,
3638
"dev.zio" %% "zio-test-sbt" % zioVersion % Test,
3739
"io.get-coursier" %% "coursier" % coursierVersion,
38-
"org.scalameta" %% "scalameta" % "4.5.9",
39-
"io.github.kitlangton" %% "zio-tui" % "0.1.2"
40+
"org.scalameta" %% "scalameta" % scalaMetaVersion,
41+
"io.github.kitlangton" %% "zio-tui" % zioTuiVersion
4042
),
4143
Compile / mainClass := Some("update.Main"),
4244
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"),

src/main/scala/update/CLI.scala

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,21 @@ package update
33
import tui.TUI
44
import update.cli.{CliApp, CliState, DependencyState}
55
import view.View
6-
import zio.{Chunk, IO, NonEmptyChunk, UIO, ZEnvironment, ZIO, ZLayer}
6+
import zio._
77

88
final case class CLI(dependencyUpdater: DependencyUpdater, tui: TUI) {
99

10+
/**
11+
* - Get a list of the users current dependencies [[Dependency]]
12+
* - Parse the users build.sbt [[DependencyParser]]
13+
* - Use scala.meta to semantically parse the Scala AST
14+
* - Find the available versions for each dependency [[Versions]]
15+
* - Collect available newer versions across categories (major, minor,
16+
* patch, pre-release) [[UpdateOptions]]
17+
* - Display these options to the user, they select what they want.
18+
* - Replace the versions in the source code.
19+
*/
20+
1021
val run: IO[Throwable, Unit] = {
1122
for {
1223
options0 <- dependencyUpdater.allUpdateOptions

src/main/scala/update/Main.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ import update.versions.Versions
44
import tui.TUI
55
import zio._
66

7-
/**
8-
* - Get a list of the users current dependencies [[Dependency]]
9-
* - Parse the users build.sbt [[DependencyParser]]
10-
* - Use scala.meta to semantically parse the Scala AST
11-
* - Find the available versions for each dependency [[Versions]]
12-
* - Collect available newer versions across categories (major, minor,
13-
* patch, pre-release) [[UpdateOptions]]
14-
* - Display these options to the user, they select what they want.
15-
* - Replace the versions in the source code.
16-
*/
177
object Main extends ZIOAppDefault {
188

199
val run =

0 commit comments

Comments
 (0)