File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -117,14 +117,6 @@ func main() {
117117 Short : "Print the kagent version" ,
118118 Long : `Print the kagent version` ,
119119 Run : func (cmd * cobra.Command , args []string ) {
120- if err := cli .CheckServerConnection (cfg .Client ()); err != nil {
121- pf , err := cli .NewPortForward (ctx , cfg )
122- if err != nil {
123- fmt .Fprintf (os .Stderr , "Error starting port-forward: %v\n " , err )
124- return
125- }
126- defer pf .Stop ()
127- }
128120 cli .VersionCmd (cfg )
129121 },
130122 }
@@ -440,10 +432,6 @@ Example:
440432 Aliases : []string {"v" },
441433 Help : "Print the kagent version." ,
442434 Func : func (c * ishell.Context ) {
443- if err := cli .CheckServerConnection (client ); err != nil {
444- c .Println (err )
445- return
446- }
447435 cli .VersionCmd (cfg )
448436 c .SetPrompt (config .BoldBlue ("kagent >> " ))
449437 },
You can’t perform that action at this time.
0 commit comments