1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 01:52:11 +03:00
juvix/app/Commands
Paul Cadman 511e99f217
Use Package.juvix in the global project (#2499)
## Global package configuration

This PR updates the global-project to use `Package.juvix` instead of
`juvix.yaml`.

The global package gets the following `Package.juvix`:

```
module Package;

import PackageDescription.V1 open;

package : Package :=
  defaultPackage
    {name := "global-juvix-package";
     version := mkVersion 0 0 0;
     dependencies := [defaultStdlib]};
```

## juvix clean --global

This PR also adds an option `-g/--global` to `juvix clean` that removes
the `$XDG_CONFIG_HOME/juvix/VERSION` directory.

## Testing notes

If you've already run Juvix 0.5.3 you'll need to run `juvix clean -g`
before you'll use the new global project. This will not be an issue for
users of Juvix 0.5.4 (as this version of Juvix will never generate
juvix.yaml in the global project).

Part of:
* https://github.com/anoma/juvix/issues/2487
2023-11-06 11:49:43 +00:00
..
Clean Use Package.juvix in the global project (#2499) 2023-11-06 11:49:43 +00:00
Compile Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Dependencies Add juvix dependencies update command (#2419) 2023-10-03 18:09:13 +02:00
Dev Rename Roots type to Root (#2480) 2023-10-30 14:05:52 +01:00
Doctor Global offline flag (#2335) 2023-09-05 17:11:17 +02:00
Eval Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Extra Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Format Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Html Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Repl Rename Roots type to Root (#2480) 2023-10-30 14:05:52 +01:00
Typecheck Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Base.hs Refactor CLI (#1527) 2022-09-14 16:16:15 +02:00
Clean.hs Use Package.juvix in the global project (#2499) 2023-11-06 11:49:43 +00:00
Compile.hs Add main field to juvix.yaml (#2120) 2023-05-24 15:42:20 +02:00
Dependencies.hs Add juvix dependencies update command (#2419) 2023-10-03 18:09:13 +02:00
Dev.hs Add juvix dev repl command (#1941) 2023-03-31 00:57:44 +02:00
Doctor.hs Use a versioned documentation link in the doctor output (#2475) 2023-10-26 11:51:48 +01:00
Eval.hs Fix 'function not found' error in juvix eval (#2178) 2023-06-06 13:26:43 +02:00
Format.hs Fix remove unexpected whitespaces introduced by formatting (#2489) 2023-11-03 12:51:45 +01:00
Html.hs Add new flags to the Html backend (#2447) 2023-10-23 16:22:04 +02:00
Init.hs Use Package.juvix in the global project (#2499) 2023-11-06 11:49:43 +00:00
Repl.hs Fix remove unexpected whitespaces introduced by formatting (#2489) 2023-11-03 12:51:45 +01:00
Typecheck.hs Update ci to use ormolu 0.5.3.0 and reformat project (#2313) 2023-08-25 17:37:23 +01:00