|
@ -15,7 +15,6 @@ import ( |
|
|
var ( |
|
|
var ( |
|
|
shellOptions shell.ShellOptions |
|
|
shellOptions shell.ShellOptions |
|
|
shellInitialFilerUrl *string |
|
|
shellInitialFilerUrl *string |
|
|
|
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func init() { |
|
|
func init() { |
|
@ -32,13 +31,11 @@ var cmdShell = &Command{ |
|
|
`, |
|
|
`, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func runShell(command *Command, args []string) bool { |
|
|
func runShell(command *Command, args []string) bool { |
|
|
|
|
|
|
|
|
util.LoadConfiguration("security", false) |
|
|
util.LoadConfiguration("security", false) |
|
|
shellOptions.GrpcDialOption = security.LoadClientTLS(viper.Sub("grpc"), "client") |
|
|
shellOptions.GrpcDialOption = security.LoadClientTLS(viper.Sub("grpc"), "client") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var filerPwdErr error |
|
|
var filerPwdErr error |
|
|
shellOptions.FilerHost, shellOptions.FilerPort, shellOptions.Directory, filerPwdErr = parseFilerUrl(*shellInitialFilerUrl) |
|
|
shellOptions.FilerHost, shellOptions.FilerPort, shellOptions.Directory, filerPwdErr = parseFilerUrl(*shellInitialFilerUrl) |
|
|
if filerPwdErr != nil { |
|
|
if filerPwdErr != nil { |
|
|