Skip to content

Commit

Permalink
feat(cli): add msg when detach from container (#841)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>

Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed Sep 2, 2022
1 parent 7fc9f34 commit 7ba3b3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ func (c generalClient) Attach() error {
logrus.Debugf("executing command over ssh: '%s'", cmd)
err = session.Run(cmd)
if err == nil {
logrus.Infof("Detached successfully. You can attach to the container with command `ssh %s`\n",
ir.DefaultGraph.EnvironmentName)
return nil
}
if strings.Contains(err.Error(), "status 130") || strings.Contains(err.Error(), "4294967295") {
Expand Down

0 comments on commit 7ba3b3f

Please sign in to comment.