-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The args file to the prove CLI must now be textual nock term (#3253)
This PR makes the behaviour of the anoma prove CLI arguments match the documented behaviour. Previously the arguments file was expected to be jammed bytes unless it had the extension `.debug.nockma`. Now the arguments file **must** be a textual nock term of the form `[arg1 arg2 ... argn 0]` i.e a Nock list of arguments and the file can have any name. For example: Test.juvix ``` module Test; import Stdlib.Prelude open; main : List Nat -> List Nat | xs := map \{ x := x * 2 } xs; ``` If you want to pass the list`[1;2;3]` as the argument you create a file: Test.args ``` [[1 2 3 0] 0] ``` And run: ``` $ juvix compile anoma Test.juvix $ juvix dev anoma prove Test.nockma --args Test.args $ juvix dev nockma encode --from bytes --to text < Test.proved.nockma [2 4 6 0] ``` * Fixes #3248
- Loading branch information
1 parent
4dcbf79
commit 4c1a686
Showing
4 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters