do not check command names for auto dash

pull/2/head
fuwa 5 years ago
parent c323017c7b
commit a3a21d76b0

@ -82,47 +82,6 @@ final _theme = ThemeData
);
const Set<String> _commands =
{
'alt_chain_info',
'bc_dyn_stat0s',
'check_blockchain_pruning',
'flush_txpool',
'hard_fork_info',
'hide_hr',
'in_peers',
'is_key_image_spent',
'limit_down',
'limit_up',
'mining_status',
'out_peers',
'output_histogram',
'pop_blocks',
'print_bc',
'print_block',
'print_cn',
'print_coinbase_tx_sum',
'print_height',
'print_net_stats',
'print_pl',
'print_pl_stats',
'print_pool',
'print_pool_sh',
'print_pool_stats',
'print_status',
'print_tx',
'prune_blockchain',
'relay_tx',
'set_log',
'show_hr',
'start_mining',
'start_save_graph',
'stop_daemon',
'stop_mining',
'stop_save_graph',
'sync_info',
};
final config = CryptoConfig
(
'wownerod',
@ -131,7 +90,6 @@ final config = CryptoConfig
70,
_theme,
34568,
_commands,
[
'--prune-blockchain',
'--max-concurrency=1',

@ -28,7 +28,6 @@ class CryptoConfig {
final int splashDelay;
final ThemeData theme;
final int port;
final Set<String> commands;
final List<String> extraArgs;
final String promptString;
const CryptoConfig
@ -39,7 +38,6 @@ class CryptoConfig {
this.splashDelay,
this.theme,
this.port,
this.commands,
this.extraArgs,
this.promptString,
);

@ -181,11 +181,7 @@ Widget terminalView(BuildContext context, String title, SyncedState state) {
final tail = words.sublist(1);
final guessHead = head.replaceAll('-', '_');
if (config.c.commands.contains(guessHead)) {
return [ guessHead, ...tail ].join(' ');
} else {
return x;
}
return [ guessHead, ...tail ].join(' ');
}
final _text = state.textController.text.trim();