Skip to content

Add detailed app listing and type filtering support#7

Merged
mariotaku merged 1 commit into
mainfrom
claude/trusting-gates-lbx77v
Jun 14, 2026
Merged

Add detailed app listing and type filtering support#7
mariotaku merged 1 commit into
mainfrom
claude/trusting-gates-lbx77v

Conversation

@mariotaku

Copy link
Copy Markdown
Member

Summary

Enhanced the list command to support detailed app information display and filtering by app type, matching the reference CLI's behavior.

Key Changes

  • New CLI flags:

    • --listfull / -F: Display detailed information for each app instead of just IDs
    • --type / -t: Filter listed apps by app type
  • App struct enhancements:

    • Added Serialize derive to support JSON conversion for detailed output
    • Added visible field to filter out non-visible apps (matching reference CLI behavior)
    • Added extra field with #[serde(flatten)] to capture and preserve additional app properties for full listing
  • List output formatting:

    • Implemented convert_json_to_list() function to render JSON as indented text with hierarchical - prefixes
    • Supports nested objects and arrays with proper indentation levels
    • Hides non-visible apps by default (respects signage profile visibility)
    • Applies type filtering when specified
  • Implementation details:

    • Updated ListApps::list_apps() trait method signature to accept list_full and type_filter parameters
    • Added helper functions is_nested() and scalar_to_string() to handle JSON-to-text conversion logic
    • Mirrors the reference CLI's convertJsonToList behavior for consistent output formatting

https://claude.ai/code/session_017vAGzSSYNcgdQzJRLWfX47

Align the `--list` output with webos-tools/cli by hiding non-visible
apps, and add the `--listfull`/`-F` and `--type`/`-t` options:

- Filter out apps whose `visible` flag is not set, mirroring the
  reference CLI's non-signage listing behavior.
- `--listfull` dumps full app metadata via a port of the reference
  `convertJsonToList` renderer; remaining fields are captured with a
  flattened `extra` map so nothing is dropped.
- `--type` filters the listed apps by app type.

https://claude.ai/code/session_017vAGzSSYNcgdQzJRLWfX47
@mariotaku mariotaku merged commit dc7b96b into main Jun 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants