mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 09:41:40 +08:00
describe all packages works again
This commit is contained in:
parent
f7e1561067
commit
355b519c1e
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue
Block a user