summaryrefslogtreecommitdiff
path: root/src/frontend/cli/sisyphus-cli.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-10 03:17:20 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-10 03:17:20 +0000
commit53da11888eb6126cb01a51d374f24be78142847f (patch)
tree0cbbf63709e7fa197261495db103a5c6d03c771c /src/frontend/cli/sisyphus-cli.py
parenta4113ec22eb83961fe53546a17d5998df1391872 (diff)
minor tweaks to search filters && do not suggest --ebuild option when we have a match
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 8937c93..e69a547 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -21,16 +21,16 @@ def app_callback(ctx: typer.Context):
ctx.info_name = 'sisyphus'
class Filter(str, Enum):
- any = 'any'
+ all = 'all'
alien = 'alien'
installed = 'installed'
- remote = 'remote'
- upgrade = 'upgrade'
+ available = 'available'
+ upgradeable = 'upgradeable'
@app.command("search")
def search(package: List[str] = typer.Argument(...),
desc: str = typer.Option('', '--description', '-d', help = 'Match description.'),
- filter: Filter = typer.Option(Filter.any, '--filter', '-f', show_default=True),
+ filter: Filter = typer.Option(Filter.all, '--filter', '-f', show_default=True),
quiet: bool = typer.Option(False, '-q', help='Short (one line) output.'),
ebuild: bool = typer.Option(False, "--ebuild", "-e", help = 'Search in ebuilds (slower).')):
"""Search for binary and/or ebuild (source) packages.
@@ -62,16 +62,16 @@ def search(package: List[str] = typer.Argument(...),
Use the -f (--filter) option to select only packages of interest. Possible values:
- any (default) - search the entire database
+ all (default) - search the entire database
alien - search for installed packages but not available
(this filter can match packages installed from e-builds or packages no longer maintained as binaries)
installed - search in all installed packages
- remote - search for available packages but not installed
+ available - search for available packages but not installed
- upgrade - search for installed packages where installed version is different from available version
+ upgradeable - search for installed packages where installed version is different from available version
!!! NOTE !!!:
@@ -82,9 +82,9 @@ def search(package: List[str] = typer.Argument(...),
sisyphus search \* -f alien # OK
- sisyphus search '*' -f remote # OK
+ sisyphus search '*' -f available # OK
- sisyphus search '' -f upgrade # OK
+ sisyphus search '' -f upgradeable # OK
To search for all (including source) packages, use the --ebuild option.