Merge pull request #310 from sheldon/describe-fixes

Describe all packages fixed
pull/318/head
Stephen M. Coakley 8 years ago
commit 4b541ec0a1

@ -1,10 +1,4 @@
function omf.cli.describe -a name
switch (count $argv)
case 1
omf.packages.describe $name
return 0
case '*'
echo (omf::err)"Invalid number of arguments"(omf::off)
return 1
end
omf.packages.describe $name
return 0
end

@ -19,7 +19,7 @@ function omf.cli.help -a command
Get information about what packages do.
"(omf::dim)"Usage:"(omf::off)"
omf describe Get information from all available packages
omf describe Get information from all available packages
omf describe "(omf::em)"<name>"(omf::off)" Get information from package by name
"(omf::dim)"Examples:"(omf::off)"

@ -1,7 +1,7 @@
function omf.packages.describe -a name
if test (count $argv) -eq 0
for package in (omf.packages.list --database)
echo $package - (omf.describe $package)
echo $package - (omf.packages.describe $package)
end
else
set package_path $OMF_PATH/db/pkg/$name

Loading…
Cancel
Save