Skip to content

Commit 0e6223f

Browse files
committed
Round out --use scenario
1 parent 135a976 commit 0e6223f

34 files changed

+1292
-244
lines changed

cmd/modern/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
package main
1313

1414
import (
15+
legacyCmd "github.com/microsoft/go-sqlcmd/cmd/sqlcmd"
1516
"github.com/microsoft/go-sqlcmd/internal"
1617
"github.com/microsoft/go-sqlcmd/internal/cmdparser"
1718
"github.com/microsoft/go-sqlcmd/internal/cmdparser/dependency"
@@ -22,11 +23,8 @@ import (
2223
"github.com/microsoft/go-sqlcmd/internal/pal"
2324
"github.com/microsoft/go-sqlcmd/pkg/sqlcmd"
2425
"github.com/spf13/cobra"
25-
"path"
26-
2726
"os"
28-
29-
legacyCmd "github.com/microsoft/go-sqlcmd/cmd/sqlcmd"
27+
"path"
3028
)
3129

3230
var rootCmd *Root

cmd/modern/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func (c *Root) SubCommands() []cmdparser.Command {
6868
cmdparser.New[*root.Start](dependencies),
6969
cmdparser.New[*root.Stop](dependencies),
7070
cmdparser.New[*root.Uninstall](dependencies),
71+
cmdparser.New[*root.Use](dependencies),
7172
}
7273

7374
// BUG(stuartpa): - Add Linux support

0 commit comments

Comments
 (0)