From 367be2d385ac95bd740b519c40e827d67f3c57da Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 27 Dec 2016 15:25:43 -0800 Subject: [PATCH] lncli: remove deprecated shell command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit removes the shell command as it’s now deprecated since it was never fully implemented. --- cmd/lncli/commands.go | 9 +-------- cmd/lncli/main.go | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 73437b86b..3d1bf871d 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -31,14 +31,6 @@ func printRespJson(resp interface{}) { out.WriteTo(os.Stdout) } -var ShellCommand = cli.Command{ - Name: "shell", - Usage: "enter interactive shell", - Action: func(c *cli.Context) { - println("not implemented yet") - }, -} - var NewAddressCommand = cli.Command{ Name: "newaddress", Usage: "generates a new address. Three address types are supported: p2wkh, np2wkh, p2pkh", @@ -757,6 +749,7 @@ func describeGraph(ctx *cli.Context) error { client := getClient(ctx) req := &lnrpc.ChannelGraphRequest{} + graph, err := client.DescribeGraph(context.Background(), req) if err != nil { return err diff --git a/cmd/lncli/main.go b/cmd/lncli/main.go index b4d0cffe4..b1bdd6a0f 100644 --- a/cmd/lncli/main.go +++ b/cmd/lncli/main.go @@ -57,7 +57,6 @@ func main() { ListPeersCommand, WalletBalanceCommand, ChannelBalanceCommand, - ShellCommand, GetInfoCommand, PendingChannelsCommand, SendPaymentCommand,