Skip to content

Commit

Permalink
Add dev command: stop
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 authored and erdemyerebasmaz committed Nov 16, 2023
1 parent 960d7e2 commit 65428ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/routes/dev/command_line_interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class _CommandLineInterfaceState extends State<CommandLineInterface> {
case 'listPayments':
case 'listInvoices':
case 'closeAllChannels':
case 'stop':
final command = commandArgs[0].toLowerCase();
_log.info("executing command: $command");
final answer = await _breezLib.executeCommand(command: command);
Expand Down
4 changes: 4 additions & 0 deletions lib/routes/dev/widget/command_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class CommandList extends StatelessWidget {
"closeAllChannels",
(c) => _onCommand(context, c),
),
Command(
"stop",
(c) => _onCommand(context, c),
),
],
),
],
Expand Down

0 comments on commit 65428ca

Please sign in to comment.