Skip to content

Commit 0fe7ed3

Browse files
committed
Adjusted demo to new names
1 parent 43aa4e8 commit 0fe7ed3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/demo/command-interface-demo.dylan

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ end;
3232
define command directory ($root)
3333
help "Show information about directory";
3434
simple parameter directory :: <string>,
35-
node-class: <command-file>,
35+
node-class: <file-node>,
3636
accept-file?: #f,
3737
must-exist?: #t;
3838
implementation
@@ -49,13 +49,13 @@ define command show interface ($root)
4949
help "Query interfaces";
5050
flag parameter verbose :: <boolean>;
5151
simple parameter name :: <string>,
52-
node-class: <command-oneof>,
52+
node-class: <oneof-node>,
5353
alternatives: #("eth0", "eth1", "eth2", "eth3");
5454
named parameter type :: <string>,
55-
node-class: <command-oneof>,
55+
node-class: <oneof-node>,
5656
alternatives: #("ethernet","atm");
5757
named parameter protocol :: <string>,
58-
node-class: <command-oneof>,
58+
node-class: <oneof-node>,
5959
alternatives: #("ip","ip4","ip6","lldp");
6060
implementation
6161
format-out("Nothing to show... %= | %=\n", verbose, name);
@@ -72,10 +72,10 @@ end;
7272
define command show log ($root)
7373
help "Query logs";
7474
named parameter service :: <string>,
75-
node-class: <command-oneof>,
75+
node-class: <oneof-node>,
7676
alternatives: #("dhcp-server","dhcp-client","kernel");
7777
named parameter level :: <string>,
78-
node-class: <command-oneof>,
78+
node-class: <oneof-node>,
7979
alternatives: #("fatal","error","warning","notice","info","debug","trace");
8080
implementation
8181
format-out("Nothing to show...\n");

0 commit comments

Comments
 (0)