forked from pmichaud/pmtcl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add subcommand stubs for dict command
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
our sub dict(*@args) { | ||
if +@args < 1 { | ||
error('wrong # args: should be "array option arrayName ?arg ...?"'); | ||
} | ||
|
||
my @opts := <append create exists filter for get incr info keys lappend merge remove | ||
replace set size unset update values with>; | ||
my $cmd := _tcl::select_option(@opts, @args.shift(), 'subcommand'); | ||
|
||
if $cmd eq 'append' { | ||
return ''; | ||
} elsif $cmd eq 'create' { | ||
return ''; | ||
} elsif $cmd eq 'filter' { | ||
return ''; | ||
} elsif $cmd eq 'for' { | ||
return ''; | ||
} elsif $cmd eq 'get' { | ||
return ''; | ||
} elsif $cmd eq 'incr' { | ||
return ''; | ||
} elsif $cmd eq 'info' { | ||
return ''; | ||
} elsif $cmd eq 'keys' { | ||
return ''; | ||
} elsif $cmd eq 'lappend' { | ||
return ''; | ||
} elsif $cmd eq 'merge' { | ||
return ''; | ||
} elsif $cmd eq 'remove' { | ||
return ''; | ||
} elsif $cmd eq 'replace' { | ||
return ''; | ||
} elsif $cmd eq 'set' { | ||
return ''; | ||
} elsif $cmd eq 'size' { | ||
return ''; | ||
} elsif $cmd eq 'unset' { | ||
return ''; | ||
} elsif $cmd eq 'update' { | ||
return ''; | ||
} elsif $cmd eq 'values' { | ||
return ''; | ||
} elsif $cmd eq 'with' { | ||
return ''; | ||
} | ||
} | ||
|
||
# vim: filetype=perl6: |