Skip to content

Commit

Permalink
docs: add section on query has
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed May 25, 2024
1 parent 688007c commit 005a58c
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Usage: uu query [OPTIONS] [COMMAND]
Commands:
maintained
has
help Print this message or the help of the given subcommand(s)
Options:
Expand Down Expand Up @@ -117,6 +118,50 @@ Options:
uu query maintained --by "<username>" --not --count
```

#### `has`

```
Usage: uu query has [OPTIONS]
Options:
--name <NAME>
--category <CATEGORIES>
--icon <ICON>
--color <COLOR>
--app-link <APP_LINK>
-c, --count
-l, --list
-n, --not
-o, --output <FORMAT> [default: json] [possible values: json, plain]
-h, --help Print help
```

**Examples**:

- Check if userstyles exist with `color` set to `mauve`.

```
uu query has --color mauve
```

- List userstyles that have `color` set to `mauve`.

```
uu query has --color mauve --list
```

- Count the number of userstyles that have `color` set to `mauve`.

```
uu query has --color mauve --count
```

- Count the number of userstyles that have `color` set to anything other than `mauve`.

```
uu query has --color mauve --not --count
```

### `init`

The `init` command accepts each value (name, categories, etc.) via arguments, though if not provided a series of prompts will be displayed instead.
Expand Down

0 comments on commit 005a58c

Please sign in to comment.