File tree 7 files changed +1
-264
lines changed
7 files changed +1
-264
lines changed Original file line number Diff line number Diff line change 12
12
package main
13
13
14
14
import (
15
- "encoding/base64"
16
- "encoding/json"
15
+ legacyCmd "github.com/microsoft/go-sqlcmd/cmd/sqlcmd"
17
16
"github.com/microsoft/go-sqlcmd/internal"
18
17
"github.com/microsoft/go-sqlcmd/internal/cmdparser"
19
18
"github.com/microsoft/go-sqlcmd/internal/cmdparser/dependency"
@@ -26,9 +25,6 @@ import (
26
25
"github.com/spf13/cobra"
27
26
"os"
28
27
"path"
29
- "strings"
30
-
31
- legacyCmd "github.com/microsoft/go-sqlcmd/cmd/sqlcmd"
32
28
)
33
29
34
30
var rootCmd * Root
@@ -46,25 +42,6 @@ func main() {
46
42
ErrorHandler : checkErr ,
47
43
HintHandler : displayHints })}
48
44
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
-
68
45
if isFirstArgModernCliSubCommand () {
69
46
cmdparser .Initialize (initializeCallback )
70
47
rootCmd .Execute ()
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ func (c *Root) SubCommands() []cmdparser.Command {
67
67
cmdparser.New [* root.Query ](dependencies ),
68
68
cmdparser.New [* root.Start ](dependencies ),
69
69
cmdparser.New [* root.Stop ](dependencies ),
70
- cmdparser.New [* root.System ](dependencies ),
71
70
cmdparser.New [* root.Uninstall ](dependencies ),
72
71
cmdparser.New [* root.Use ](dependencies ),
73
72
}
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