Commit 4b541ec0 authored by Stephen M. Coakley's avatar Stephen M. Coakley

Merge pull request #310 from sheldon/describe-fixes

Describe all packages fixed
parents a79b6c1d 355b519c
function omf.cli.describe -a name function omf.cli.describe -a name
switch (count $argv) omf.packages.describe $name
case 1 return 0
omf.packages.describe $name
return 0
case '*'
echo (omf::err)"Invalid number of arguments"(omf::off)
return 1
end
end end
...@@ -19,7 +19,7 @@ function omf.cli.help -a command ...@@ -19,7 +19,7 @@ function omf.cli.help -a command
Get information about what packages do. Get information about what packages do.
"(omf::dim)"Usage:"(omf::off)" "(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 describe "(omf::em)"<name>"(omf::off)" Get information from package by name
"(omf::dim)"Examples:"(omf::off)" "(omf::dim)"Examples:"(omf::off)"
......
function omf.packages.describe -a name function omf.packages.describe -a name
if test (count $argv) -eq 0 if test (count $argv) -eq 0
for package in (omf.packages.list --database) for package in (omf.packages.list --database)
echo $package - (omf.describe $package) echo $package - (omf.packages.describe $package)
end end
else else
set package_path $OMF_PATH/db/pkg/$name set package_path $OMF_PATH/db/pkg/$name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment