mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-21 16:46:46 +08:00

Replace package database with independently installed package repositories - Add support for fetching and installing from package repositories containing package URLs and metadata - Support multiple package repository sources - Add new repo command - Remove submit command - Enhance describe and search commands - Fix and improve help text for new and adjusted commands - Fix bundle install exit status - Refer to plugins as "plugins" instead of the general term "packages" - Code clarity improvements - Put plugin/theme distinction into package metadata
14 lines
368 B
Fish
14 lines
368 B
Fish
function omf.cli.describe -a package -d 'Show information about a package'
|
|
if set -l props (omf.index.stat $package description repository maintainer)
|
|
echo "Package: $package"
|
|
echo "Description: $props[1]"
|
|
echo "Repository: $props[2]"
|
|
echo "Maintainer: $props[3]"
|
|
|
|
return 0
|
|
end
|
|
|
|
echo "Unable to locate package '$package'." >&2
|
|
return 1
|
|
end
|