Skip to content

Commit c5de685

Browse files
committed
refactor: remove unused parallel task helpers and streamline import statements
1 parent bae1ce1 commit c5de685

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cmd/keymaster/main.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import (
3838
"github.com/toeirei/keymaster/internal/tui"
3939
"golang.org/x/crypto/ssh"
4040
"golang.org/x/term"
41-
// removed: parallel helper used cases & language; keep imports minimal
4241
)
4342

4443
var version = "dev" // this will be set by the linker
@@ -531,7 +530,6 @@ var importCmd = &cobra.Command{
531530
// parallelTask defines a generic task to be executed in parallel across multiple
532531
// accounts. It holds configuration for messaging, logging, and the core task
533532
// function to be executed.
534-
// parallelTask removed: use core.ParallelRun instead.
535533

536534
// trustHostCmd represents the 'trust-host' command.
537535
// It facilitates the initial trust of a new host by fetching its public SSH key,
@@ -591,7 +589,6 @@ step before Keymaster can manage a new host.`,
591589
// runParallelTasks executes a given task concurrently for a list of accounts.
592590
// It uses a wait group to manage goroutines and a channel to collect results,
593591
// printing status messages as tasks complete.
594-
// runParallelTasks removed: use core.ParallelRun from internal/core.
595592

596593
// audit implementations moved to internal/deploy/audit.go
597594

@@ -835,7 +832,7 @@ Use --tag to decommission all accounts with specific tags (e.g., --tag env:stagi
835832
},
836833
}
837834

838-
// findAccountByIdentifier removed: use core.FindAccountByIdentifier instead.
835+
// helper: account identification is delegated to core.FindAccountByIdentifier
839836

840837
// restoreCmd represents the 'restore' command.
841838
// It restores the database from a compressed JSON backup file.
@@ -1004,4 +1001,4 @@ Example:
10041001
},
10051002
}
10061003

1007-
// initTargetDB removed: core.RunMigrateCmd and cliStoreFactory handle migration targets.
1004+
// migration target initialization is handled by `core.RunMigrateCmd` and `cliStoreFactory`.

0 commit comments

Comments
 (0)