Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d2oracle: set on imported nested board #1875

Open
alixander opened this issue Mar 23, 2024 · 0 comments
Open

d2oracle: set on imported nested board #1875

alixander opened this issue Mar 23, 2024 · 0 comments

Comments

@alixander
Copy link
Collaborator

alixander commented Mar 23, 2024

e.g.

cat.d2

a

scenarios: {
  b: {
    meow
  }
}

dog.d2

...@cat

and then you do d2oracle.Set on dog.d2 with board path b, changing meow opacity or something.


Options:

  1. d2oracle needs to do like a mkdir -p equivalent, where the board path maps are created if not found
  2. d2oracle can define it as a flat map set. e.g. scenarios.b.meow.style.opacity: 0.1

I think option (2) is right, since that's the behavior for similar ops (put in map if exists, otherwise append flat map line)

@alixander alixander changed the title d2oracle: operation on imported nested board d2oracle: set on imported nested board Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant