1
Fork 0

rustpkg: More preliminary work

This commit is contained in:
Zack Corr 2013-01-15 23:57:03 +10:00 committed by Graydon Hoare
parent 621c791ded
commit 71d34a8872
4 changed files with 174 additions and 2 deletions

6
src/librustpkg/util.rs Normal file
View file

@ -0,0 +1,6 @@
pub fn is_cmd(cmd: ~str) -> bool {
let cmds = &[~"build", ~"clean", ~"install", ~"prefer", ~"test",
~"uninstall", ~"unprefer"];
vec::contains(cmds, &cmd)
}