Skip to content

Commit

Permalink
Removed console command
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsharma authored and Victor Castell committed May 9, 2022
1 parent 0736fde commit 00e51a9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 674 deletions.
4 changes: 2 additions & 2 deletions internal/cli/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (c *AttachCommand) remoteConsole() error {
DataDir: path,
DocRoot: c.JSpathFlag,
Client: client,
Preload: c.MakeConsolePreloads(),
Preload: c.makeConsolePreloads(),
}

console, err := console.New(config)
Expand Down Expand Up @@ -151,7 +151,7 @@ func dialRPC(endpoint string) (*rpc.Client, error) {

// MakeConsolePreloads retrieves the absolute paths for the console JavaScript
// scripts to preload before starting.
func (c *AttachCommand) MakeConsolePreloads() []string {
func (c *AttachCommand) makeConsolePreloads() []string {
// Skip preloading if there's nothing to preload
if c.PreloadJSFlag == "" {
return nil
Expand Down
5 changes: 0 additions & 5 deletions internal/cli/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ func commands() map[string]cli.CommandFactory {
Meta2: meta2,
}, nil
},
"console": func() (cli.Command, error) {
return &server.ConsoleCommand{
UI: ui,
}, nil
},
}
}

Expand Down
Loading

0 comments on commit 00e51a9

Please sign in to comment.