Open ghost opened 6 years ago
Hi @jeremiedimino, @samoht, what happened to it? I'd like to embed files in a nested .well-known
directory that's ignored. So piping in a file list would be ideal.
@hannesm @MisterDA any chance an explicit file list on stdin thus enabling dot directories?
@mro sure the semantics can be adjusted. Please open a PR (including tests) about what you'd like to achieve / what is currently not working. I barely use crunch
these days, but am happy to have it being useful for more people.
I'd be happy to hack something. I think the semantics of GNU tar --from-file
are reasonable (although we don't have to interpret CLI switches inside the list of files). They also have the advantage of being de-facto standard.
I'm currently looking at releasing a
sexp
command line tool that we developed a long time ago at Jane Street. The build of this tool uses anembed-file
tool that we developed as well. I looked atembed-file
and it is very similar toocaml-crunch
, so I'd like to replace ourembed-file
byocaml-crunch
, to avoid releasing a project that is very similar to it.There are a few differences between the two tools. For now I can workaround these, but eventually I'd like to not have these workarounds, so I'm opening this PR to see if you'd be happy supporting the features described below. I can provide patches if yes.
The two features are:
sexp
case, we only embed a selected list of files from a directorychange_by_example.md
,change_semantics.md
,query_by_example.md
andquery_semantics.md
, we generate:The advantage being that you get a compilation error if you type the wrong file name.