File tree Expand file tree Collapse file tree 7 files changed +1
-264
lines changed Expand file tree Collapse file tree 7 files changed +1
-264
lines changed Original file line number Diff line number Diff line change 1212package main
1313
1414import (
15- "encoding/base64"
16- "encoding/json"
15+ legacyCmd "github.com/microsoft/go-sqlcmd/cmd/sqlcmd"
1716 "github.com/microsoft/go-sqlcmd/internal"
1817 "github.com/microsoft/go-sqlcmd/internal/cmdparser"
1918 "github.com/microsoft/go-sqlcmd/internal/cmdparser/dependency"
@@ -26,9 +25,6 @@ import (
2625 "github.com/spf13/cobra"
2726 "os"
2827 "path"
29- "strings"
30-
31- legacyCmd "github.com/microsoft/go-sqlcmd/cmd/sqlcmd"
3228)
3329
3430var rootCmd * Root
@@ -46,25 +42,6 @@ func main() {
4642 ErrorHandler : checkErr ,
4743 HintHandler : displayHints })}
4844 rootCmd = cmdparser.New [* Root ](dependencies )
49-
50- //var input string
51-
52- if strings .HasPrefix (os .Args [1 ], "sqlcmd://" ) {
53- sqlcmdUrl := strings .TrimRight (os .Args [1 ][9 :], "/" )
54-
55- data2 , err := base64 .StdEncoding .DecodeString (sqlcmdUrl )
56- if err == nil {
57- var genre2 []string
58- if err = json .Unmarshal (data2 , & genre2 ); err == nil {
59- cobra .MousetrapHelpText = ""
60- cmdparser .Initialize (initializeCallback )
61- rootCmd .SetArgsForUnitTesting (genre2 )
62- rootCmd .Execute ()
63- os .Exit (0 )
64- }
65- }
66- }
67-
6845 if isFirstArgModernCliSubCommand () {
6946 cmdparser .Initialize (initializeCallback )
7047 rootCmd .Execute ()
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ func (c *Root) SubCommands() []cmdparser.Command {
6767 cmdparser.New [* root.Query ](dependencies ),
6868 cmdparser.New [* root.Start ](dependencies ),
6969 cmdparser.New [* root.Stop ](dependencies ),
70- cmdparser.New [* root.System ](dependencies ),
7170 cmdparser.New [* root.Uninstall ](dependencies ),
7271 cmdparser.New [* root.Use ](dependencies ),
7372 }
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments