Skip to content

Instantly share code, notes, and snippets.

@promovicz
Last active October 25, 2020 10:21
Show Gist options
  • Save promovicz/bb2c66c9f07d401e7076 to your computer and use it in GitHub Desktop.
Save promovicz/bb2c66c9f07d401e7076 to your computer and use it in GitHub Desktop.
New dylan command-interface completion and help
prom@horsey:/extra/Projects/opendylan/libraries/command-interface$ _build/bin/command-interface-demo
>
Commands:
configure - Modify configuration
show - Show information
echo - Command
directory - Show information about directory
examine - Command
error - Fail miserably
quit - Quit the shell
help - Command
> show
Commands:
rule - Query rules
log - Query logs
route - Query routes
interface - Query interfaces
configuration - Query configuration
> show interface
Parameters:
protocol <protocol> - Filter interfaces by protocol
type <type> - Filter interfaces by type
verbose - Print verbose information
Value:
<name> - Name of the interface
eth0, eth1, eth2, eth3
> show interface eth0 verbose
> help show interface
show interface
Query interfaces
Parameters:
protocol <protocol>
Filter interfaces by protocol
type <type>
Filter interfaces by type
<name>
Name of the interface
verbose
Print verbose information
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment