mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 17:57:38 +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
|
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
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user