1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 08:27:03 +03:00
juvix/app/Commands/Dev
janmasrovira 3d012cc8fb
Support more paths (#2000)
- Closes #1993 

This pr makes it possible to use `~`, `..` and environment variables in
the `juvix.yaml` and all flags / input of the cli.

In the CLI, the shell will be responsible for replacing environment
variables with their value, so the usual syntax can be used. For the
`dependencies` field, I have implemented a parser that has some
restrictions:
1. Environment variables are given with the makefile-like syntax
`$(VAR)`
2. The three characters `$` `(` `)` are reserved for the environment
variables syntax.
    They cannot be part of the path.
3. `~` is reserved for `$(HOME)`. I.e. the prepath `~~` will expand to
`$HOME$HOME`.
4. Nested environment variables are not allowed.

Thanks @paulcadman for the feedback. I think we are ready to merge this
nightmarish pr 👻

---------

Co-authored-by: Paul Cadman <git@paulcadman.dev>
2023-04-19 15:56:48 +01:00
..
Asm Support more paths (#2000) 2023-04-19 15:56:48 +01:00
Core Support more paths (#2000) 2023-04-19 15:56:48 +01:00
DisplayRoot Support basic dependencies (#1622) 2022-12-20 13:05:40 +01:00
Geb Support more paths (#2000) 2023-04-19 15:56:48 +01:00
Highlight Support basic dependencies (#1622) 2022-12-20 13:05:40 +01:00
Internal Add dev core from-concrete command (#1833) 2023-02-10 12:37:28 +01:00
Parse Support basic dependencies (#1622) 2022-12-20 13:05:40 +01:00
Repl Pretty print JuvixCore values consistently with Juvix syntax (#1988) 2023-04-12 12:52:40 +02:00
Runtime Fix: add supported targets as option for compile commands (#1983) 2023-04-13 14:16:07 +02:00
Scope Print comments when pretty printing concrete syntax (#1737) 2023-01-24 16:15:24 +01:00
Termination Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00
Asm.hs Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00
Core.hs Add dev core from-concrete command (#1833) 2023-02-10 12:37:28 +01:00
DisplayRoot.hs Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00
Geb.hs Fix Core-To-Geb translation (#1863) 2023-02-28 18:49:44 +01:00
Highlight.hs Support more paths (#2000) 2023-04-19 15:56:48 +01:00
Internal.hs Add dev core from-concrete command (#1833) 2023-02-10 12:37:28 +01:00
Options.hs Add juvix dev repl command (#1941) 2023-03-31 00:57:44 +02:00
Parse.hs Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00
Runtime.hs Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00
Scope.hs Keep regular comments in html output (#1766) 2023-01-27 13:24:28 +01:00
Termination.hs Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00