mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-03 04:36:32 +08:00
49dda5c2f7
This updates omf plugin to new architecture, moving functions to `functions` directory. It also revamps the separation of concerns between CLI and underlying implementations, organizing them into directories, whose are autoloaded in plugin startup.
13 lines
372 B
Fish
13 lines
372 B
Fish
function omf.cli.update
|
|
if omf.core.update
|
|
echo (omf::em)"Oh My Fish is up to date."(omf::off)
|
|
else
|
|
echo (omf::err)"Oh My Fish failed to update."(omf::off)
|
|
echo "Please open a new issue here → "(omf::em)"github.com/oh-my-fish/oh-my-fish/issues"(omf::off)
|
|
end
|
|
|
|
for package in (omf.packages.list --installed)
|
|
omf.packages.update $package
|
|
end
|
|
end
|