@@ -52,13 +52,13 @@ suite "cli --list cap and short-flag stacking":
5252 for k, v in envPairs ():
5353 env[k] = v
5454 env[" XDG_DATA_HOME" ] = tmp
55- result = execCmdEx (binPath () & " " & flags, env = env, workingDir = envCwd)
56- result [ 0 ] = result [ 0 ] .strip ()
55+ let (outp, code) = execCmdEx (binPath () & " " & flags, env = env, workingDir = envCwd)
56+ result = (outp .strip (), code )
5757 else :
5858 let cmd = " XDG_DATA_HOME=" & tmp.quoteShell & " " &
5959 binPath ().quoteShell & " " & flags
60- result = execCmdEx (cmd, workingDir = envCwd)
61- result [ 0 ] = result [ 0 ] .strip ()
60+ let (outp, code) = execCmdEx (cmd, workingDir = envCwd)
61+ result = (outp .strip (), code )
6262
6363 proc seedSession (stamp: string ) =
6464 # Minimal valid .3log under the isolated sessions dir, plus a cwd-index
@@ -130,13 +130,13 @@ suite "cli syntax errors do no startup work":
130130 for k, v in envPairs ():
131131 env[k] = v
132132 env[" XDG_DATA_HOME" ] = tmp
133- result = execCmdEx (binPath () & " " & flags, env = env, workingDir = envCwd)
134- result [ 0 ] = result [ 0 ] .strip ()
133+ let (outp, code) = execCmdEx (binPath () & " " & flags, env = env, workingDir = envCwd)
134+ result = (outp .strip (), code )
135135 else :
136136 let cmd = " XDG_DATA_HOME=" & tmp.quoteShell & " " &
137137 binPath ().quoteShell & " " & flags
138- result = execCmdEx (cmd, workingDir = envCwd)
139- result [ 0 ] = result [ 0 ] .strip ()
138+ let (outp, code) = execCmdEx (cmd, workingDir = envCwd)
139+ result = (outp .strip (), code )
140140
141141 proc skillsDirExists (): bool = dirExists (tmp / " 3code" / " skills" )
142142
0 commit comments