files-by-module
get files-by-module - Get files owned by a module from cached analysis
Returns files that belong to a specific module from the FILES_BY_MODULE JSON.
This command parses the FILES_BY_MODULE JSON (from get changed-modules-ci) and returns files for a specific module in various formats.
Input: FILES_BY_MODULE environment variable or --json flag
Output formats: --count: Just the count of files --list: One file per line (default) --format shell: COUNT="N" FILES="f1 f2 f3"
Flags
| Flag | Description |
|---|---|
--count |
Output only the file count |
--json |
FILES_BY_MODULE JSON (defaults to env var) |
--format |
Output format (list, shell) |
Examples
get files-by-module docs # List files
get files-by-module docs --count # Just count
get files-by-module docs --json "$JSON" # From explicit JSON
eval $(get files-by-module docs --format shell)
See Also
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.