File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
pacmc-cli/src/commonMain/kotlin/net/axay/pacmc/cli/commands Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ class InstallCommand : CliktCommand(
25
25
terminal.println (" Resolving versions and dependencies..." )
26
26
val archive = Archive .terminalFromString(archiveName) ? : return @launchJob
27
27
28
+ val modIds = CliParser .resolveSlugs(modSlugNames) ? : return @launchJob
29
+
28
30
val spinner = SpinnerAnimation ()
29
31
spinner.start()
30
- val transaction = archive.resolve(CliParser .resolveSlugs(modSlugNames) ? : return @launchJob , spinner::update)
31
- spinner.stop()
32
+ val transaction = archive.resolve(modIds , spinner::update)
33
+ spinner.stop(" resolved install transaction " )
32
34
terminal.println ()
33
35
34
36
val modStrings = transaction.resolveModStrings()
Original file line number Diff line number Diff line change @@ -26,10 +26,12 @@ class RemoveCommand : CliktCommand(
26
26
terminal.println (" Resolving effects of removal..." )
27
27
val archive = Archive .terminalFromString(archiveName) ? : return @launchJob
28
28
29
+ val modIds = CliParser .resolveSlugs(modSlugNames) ? : return @launchJob
30
+
29
31
val spinner = SpinnerAnimation ()
30
32
spinner.start()
31
- val removalResolveResult = archive.resolveRemoval(CliParser .resolveSlugs(modSlugNames) ? : return @launchJob , spinner::update)
32
- spinner.stop()
33
+ val removalResolveResult = archive.resolveRemoval(modIds , spinner::update)
34
+ spinner.stop(" resolved remove transaction " )
33
35
terminal.println ()
34
36
35
37
if (removalResolveResult.stillNeeded.isNotEmpty() || removalResolveResult.notInstalled.isNotEmpty()) {
You can’t perform that action at this time.
0 commit comments