CLI improving #275
Replies: 2 comments 4 replies
-
For future searchers, this idea has its own issue now: #410 (though I don't think they should be removed from arguments; CLI arguments should override code metadata) |
Beta Was this translation helpful? Give feedback.
-
Most of the discussion so far has been about setting CLI flags like
|
Beta Was this translation helpful? Give feedback.
-
At the moment, for every new file we develop, we have to create a new command for build and watch. Now I achieve this with a powerful makefile setup.
And I can use it as the following:
The idea I propose is to add an optional parameter to
--watch
on the directory where the files are located. And the d2 tool will create a small file server where it will display the current d2 files with a link to them. Once selected it will display the SVG with livereload.The second suggestion is to remove
layout
andtheme
from the arguments in the d2 tool and add them to root asdirection
(if possible of course).Beta Was this translation helpful? Give feedback.
All reactions