Skip to content

Suggest most inner content path that could be pulled #310

Description

@krystian-panek-vmltech
➜ sh aemw content pull --file "ui.apps/src/main/content/jcr_root/apps/cq/gui/content/common/managepublicationwizard/body/items.xml" -A      
INFO[2025-07-15 11:59:53] local_author > creating package 'aemc:content-pull:20250715115953-SNAPSHOT' 
INFO[2025-07-15 11:59:54] local_author > created package 'aemc:content-pull:20250715115953-SNAPSHOT' 
INFO[2025-07-15 11:59:54] local_author > building package '/etc/packages/aemc/content-pull-20250715115953-SNAPSHOT.zip' 
INFO[2025-07-15 11:59:54] local_author > built package '/etc/packages/aemc/content-pull-20250715115953-SNAPSHOT.zip' 
INFO[2025-07-15 11:59:54] local_author > downloading package '/etc/packages/aemc/content-pull-20250715115953-SNAPSHOT.zip' 
10.67 KiB / 10.67 KiB [------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% ? p/s 0s
INFO[2025-07-15 11:59:54] local_author > downloaded package '/etc/packages/aemc/content-pull-20250715115953-SNAPSHOT.zip' 
INFO[2025-07-15 11:59:54] local_author > deleting package '/etc/packages/aemc/content-pull-20250715115953-SNAPSHOT.zip' 
INFO[2025-07-15 11:59:54] local_author > deleted package '/etc/packages/aemc/content-pull-20250715115953-SNAPSHOT.zip' 
ERRO[2025-07-15 11:59:54] stat aem/home/tmp/content_pull_04143480/jcr_root/apps/cq/gui/content/common/managepublicationwizard/body/items.xml: no such file or directory 

should print sth like

Path '/apps/cq/gui/content/common/managepublicationwizard/body/items.xml' cannot be pulled as it does not exist in built package!
Consider pulling parent path '/apps/cq/gui/content/common/managepublicationwizard/.content.xml'

also consider adding config variable that will keep downloaded packages (not deleting them / for troubleshooting what's inside)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprovement to an existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions