summaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/cli/README.md12
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py18
2 files changed, 15 insertions, 15 deletions
diff --git a/src/frontend/cli/README.md b/src/frontend/cli/README.md
index 0ef8b69..5636e2e 100644
--- a/src/frontend/cli/README.md
+++ b/src/frontend/cli/README.md
@@ -229,16 +229,16 @@ In addition, search can be performed by package description, using the -d (--des
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 !!!:
@@ -249,9 +249,9 @@ To search for all matching '--filter' packages escape it, or surround it with qu
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.
@@ -268,7 +268,7 @@ $ sisyphus search [OPTIONS] PACKAGE...
**Options**:
* `-d, --description TEXT`: Match description.
-* `-f, --filter [any|alien|installed|remote|upgrade]`: [default: any]
+* `-f, --filter [all|alien|installed|available|upgradeable]`: [default: all]
* `-q`: Short (one line) output.
* `-e, --ebuild`: Search in ebuilds (slower).
* `--help`: Show this message and exit.
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.