mirror of
https://github.com/Gu1llaum-3/sshm.git
synced 2026-03-14 03:41:27 +01:00
fix(cmd): export variables for test accessibility
Export rootCmd->RootCmd and appVersion->AppVersion to fix test compilation errors. Update all references across cmd package and tests.
This commit is contained in:
@@ -36,7 +36,7 @@ func TestSearchCommand(t *testing.T) {
|
||||
func TestSearchCommandRegistration(t *testing.T) {
|
||||
// Check that search command is registered with root command
|
||||
found := false
|
||||
for _, cmd := range rootCmd.Commands() {
|
||||
for _, cmd := range RootCmd.Commands() {
|
||||
if cmd.Name() == "search" {
|
||||
found = true
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user