[FEATURE] add --like support to build method to allow selecting by folder

Open
#1,813 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript

Research direction

Start at the CLI build method and trace how --bf, --mf, --bt, and --mt are parsed, then follow the existing retrieval and metadata-loading flow. Define the behavior for --like.r__folder_Path and type-only selections from the sample command. Done means matching keys can be selected from disk without re-retrieve, while re-retrieved metadata is still filtered by --like.

Written by the indexing model from the issue text.

Description

e/DevOps enhancement PRIORITY

the basic idea is that you would NOT configure keys but instead just a type together with like.
this new piece of solution then relies on parsing whats on disk find the right keys based on the --like conditions.
a re-retrieve shall NOT be required for this, but it shall be possible. if re-retrieve was done, we should still load all metadata and again filter by --like... keeps the logic simpler (even though the --like would have been used during the retrieve automatically)

sample execution:

mcdev build --bf x/y --mf y --bt a/b --mt b -m asset --like.r__folder_Path "Content Builder/my subfolder/%/only this%"

major change:

  • if --like is provided, it is allowed to specify only a type - but you can still also define a name, id or key
Dominant language
JavaScript
Stars
166
Forks
50
Avg merge
11h 4m
Merged PRs (30d)
36

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Accenture/sfmc-devtools

All issues in Accenture/sfmc-devtools

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.