feat: add more description

This commit is contained in:
fengcaiwen
2023-09-28 10:51:11 +08:00
committed by naison
parent a0f7fd0f06
commit 31369a19d6
14 changed files with 121 additions and 109 deletions

View File

@@ -892,6 +892,9 @@ func SshJump(ctx context.Context, conf *util.SshConfig, flags *pflag.FlagSet, pr
}
func SshJumpAndSetEnv(ctx context.Context, conf *util.SshConfig, flags *pflag.FlagSet, print bool) error {
if conf.Addr == "" && conf.ConfigAlias == "" {
return nil
}
path, err := SshJump(ctx, conf, flags, print)
if err != nil {
return err