fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
733 B21 linesraw
1# localization: skip(private)
2function __fish_print_eopkg_packages
3    type -q -f eopkg || return 1
4
5    argparse i/installed -- $argv
6    or return 1
7
8    # If the cache is less than max_age, we do not recalculate it
9    # Determine whether to print installed/available packages
10
11    if set -q _flag_installed
12        # Remove package version information from output and pipe into cache file
13        __fish_cached -t 500 -k eopkg-installed -- "eopkg list-installed -N | cut -d ' ' -f 1"
14        return 0
15    else
16        # Remove package version information from output and pipe into cache file
17        __fish_cached -t 500 -k eopkg-available -- "eopkg list-available -N | cut -d ' ' -f 1"
18        return 0
19    end
20    return 1
21end