name: scan
about: Scan project codebase and export as structured JSON
notify: true
args:
- name: path
short: p
input: string
default: .
help: Project path
actions:
- tag: tag_validate
run: cmd
expect: string
action:
- when: '{path|is_dir}'
then: echo "{path}"
- when: '{path|is_dir:not}'
then: echo "'{path}' is not a directory" && exit 1
- tag: tag_resolve
run: value
expect: string
action: '{tag_validate|resolve}'
- tag: tag_ast
run: value
expect: list
action: '{tag_resolve|scan|ast}'
- tag: tag_json
run: value
expect: string
action: '{tag_ast|trim|format:json}'
- tag: tag_save
run: cmd
expect: string
action: |
printf '%s' '{tag_json|clipboard}' > {system_dir_download}/vibe-export-{system_pid}.json
echo "Saved to {system_dir_download}/vibe-export-{system_pid}.json"