-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Maketiles: Config files like Makefiles #84
Comments
edemaine
added a commit
that referenced
this issue
Sep 20, 2022
edemaine
added a commit
that referenced
this issue
Sep 23, 2022
edemaine
added a commit
that referenced
this issue
Sep 24, 2022
* `-s KEY` sets `share.KEY` to `undefined` * `-s KEY=VALUE` sets `share.KEY` to `"VALUE"`
edemaine
added a commit
that referenced
this issue
Sep 24, 2022
Replaced by #99. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
svgtiler
CLI requires at least two arguments that are annoying to retype. The typical solution to this has been to write aMakefile
and use that. Butsvgtiler
really wants to be its own build system (so it can re-use Inkscape processes) so it makes more sense to define our own config file. We can still use the argument system, but store it in a file. For example:Additional illustrated features that would make this particularly useful (many of which also make sense in CLI):
-O
to specify output base filename, not just directory. Perhaps just for the next drawing. (Currently want this inmario
example.)-O
(and maybe not-o
?) can use*
(short for the stem of the input file) to specify basename stem modification in addition to directory. (Currently want this inmario
example.)-s
/--share
foo=bar
argument to setshare.foo = "bar"
**
#
(not for CLI)Maketile
(other names considered:svgtiler.config
,svgtiler.opts
,Tilefile
) automatically loaded when runningsvgtiler
Maketile
automatically executed if no filename argument and no--help
. This allows tweaking the options via e.g.svgtiler -f
orsvgtiler -w
. But note that some options that look like filenames might be rule names, and should be interpreted as such instead.*Maketile*
orfilename.tile
(other extensions considered:.config
/.opts
) (or more than one) on command linedir
(or-r dir
or-C dir
like make or maybe[dir]
?) ordir/Maketile
on the command line recurses intodir
directory and usesMaketile
there. Probably also temporarilychdir
there. This also means that you can specify directory names to recurse on in a Maketile.*
).For example, in NPM style:
version: ^3.1.0
make clean
equivalent ofsvgtiler --clean
(or maybesvgtiler clean
), which would delete all files thatsvgtiler
would produce (.svg
,.svg_tex
if-t
,.pdf
if-p
,.png
if-P
)ruleName: [otherRule otherRule]
, like we can withMakefile
. For example:svgtiler
to run the first rule (here,all
, which runs the three other rules), orsvgtiler proof1 proof2
to run a subset of the rules.The text was updated successfully, but these errors were encountered: