Skip to content

Commit a90efc2

Browse files
Stuart PadleyStuart Padley
Stuart Padley
authored and
Stuart Padley
committed
Added a Press Ctrl+C to exist this process message for sqlcmd open ads
1 parent e9582ca commit a90efc2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/modern/root/open/ads.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ package open
55

66
import (
77
"fmt"
8+
"runtime"
9+
"strings"
10+
811
"github.com/microsoft/go-sqlcmd/cmd/modern/sqlconfig"
912
"github.com/microsoft/go-sqlcmd/internal/cmdparser"
1013
"github.com/microsoft/go-sqlcmd/internal/config"
1114
"github.com/microsoft/go-sqlcmd/internal/container"
1215
"github.com/microsoft/go-sqlcmd/internal/tools"
13-
"runtime"
14-
"strings"
1516
)
1617

1718
// Ads implements the `sqlcmd open ads` command. It opens
@@ -99,6 +100,7 @@ func (c *Ads) launchAds(host string, port int, username string) {
99100
if !tool.IsInstalled() {
100101
output.Fatalf(tool.HowToInstall())
101102
} else {
103+
output.Infof("Press Ctrl+C to exit this process...")
102104
_, err := tool.Run(args)
103105
c.CheckErr(err)
104106
}

0 commit comments

Comments
 (0)