Skip to content

Commit

Permalink
hint
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Jan 1, 2025
1 parent d9f230e commit 7f99065
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/vmr/cli/vcli/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ var IsSessionMode = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
if gconv.Bool(os.Getenv(sh.VMDisableEnvName)) {
fmt.Println(gprint.YellowStr("Current shell is in session mode."))
fmt.Println(gprint.YellowStr("Nested sessions are not recommeded for vmr. You can use 'exit' to exit session mode."))
fmt.Println(gprint.YellowStr("If you install an SDK in global mode under a session mode shell, the 'source' command will not work, you should use the customed command 'svmr' instead."))
} else {
fmt.Println(gprint.CyanStr("Current shell is not in session mode."))
fmt.Println(gprint.CyanStr("Current shell is in global mode."))
}
},
}

0 comments on commit 7f99065

Please sign in to comment.