1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-30 05:42:26 +03:00
juvix/tests/smoke/Commands
Paul Cadman 865842046d
Support running nockma code with a running Anoma client (#3180)
This PR:

1. Adds a new interpretation for the Anoma effect, which makes gRPC
calls to an existing Anoma client instead of spawning a new one.
2. Adds a new `nockma run` mode, `with-client`, which can be used to run
an Anoma program against a running Anoma client, using its URL and gRPC
port.
3. separates the `nockma run` command into subcommands.

CLI docs:

## `nockma run`

```
Usage: juvix dev nockma run COMMAND

  Subcommands used to run an Anoma program. Use with artefacts obtained from
  compilation with the anoma target

Available options:
  -h,--help                Show this help text

Available commands:
  builtin-evaluator        Run with the builtin Nockma evaluator
  ephemeral-client         Run with an ephemeral Anoma client
  with-client              Run with a running Anoma client
```

### `with-client`

```
Usage: juvix dev nockma run with-client
         NOCKMA_FILE [--args ARGS_FILE] (-p|--grpc-port PORT) [--url URL]

  Run with a running Anoma client

Available options:
  NOCKMA_FILE              Path to a .nockma file
  --args ARGS_FILE         Path to file containing args. The args file should
                           contain a list (i.e. to pass 2 and [1 4] as args, the
                           contents should be [2 [1 4] 0]).
  -p,--grpc-port PORT      The GRPC port of a running Anoma client
  --url URL                The URL of a running Anoma client. default: localhost
  -h,--help                Show this help text
```

### `ephemeral-client`

```
Usage: juvix dev nockma run ephemeral-client
         NOCKMA_FILE [--args ARGS_FILE] --anoma-dir ANOMA_DIR

  Run with an ephemeral Anoma client

Available options:
  NOCKMA_FILE              Path to a .nockma file
  --args ARGS_FILE         Path to file containing args. The args file should
                           contain a list (i.e. to pass 2 and [1 4] as args, the
                           contents should be [2 [1 4] 0]).
  --anoma-dir ANOMA_DIR    Path to anoma repository
  -h,--help                Show this help text
```

### `builtin-evaluator`

```
Usage: juvix dev nockma run builtin-evaluator
         NOCKMA_FILE [--args ARGS_FILE] [--profile]

  Run with the builtin Nockma evaluator

Available options:
  NOCKMA_FILE              Path to a .nockma file
  --args ARGS_FILE         Path to file containing args. The args file should
                           contain a list (i.e. to pass 2 and [1 4] as args, the
                           contents should be [2 [1 4] 0]).
  --profile                Report evaluator profiling statistics
  -h,--help                Show this help text
```
2024-11-20 08:53:21 +01:00
..
dev Improve Set and Map modules in the standard library (#3120) 2024-10-24 12:29:33 +01:00
clean.smoke.yaml Logger (#2908) 2024-07-22 17:14:37 +02:00
compile-dependencies-package-juvix.smoke.yaml Don't write log messages to stdout (#3159) 2024-11-11 14:31:37 +00:00
compile-dependencies.smoke.yaml Don't write log messages to stdout (#3159) 2024-11-11 14:31:37 +00:00
compile.smoke.yaml Support running nockma code with a running Anoma client (#3180) 2024-11-20 08:53:21 +01:00
eval.smoke.yaml Logger (#2908) 2024-07-22 17:14:37 +02:00
format.smoke.yaml Logger (#2908) 2024-07-22 17:14:37 +02:00
html.smoke.yaml Parallel pipeline (#2779) 2024-05-31 12:41:30 +01:00
init.smoke.yaml Logger (#2908) 2024-07-22 17:14:37 +02:00
markdown.smoke.yaml Logger (#2908) 2024-07-22 17:14:37 +02:00
repl.smoke.yaml Non-recursive definitions (#3138) 2024-11-04 18:18:39 +01:00
typecheck.smoke.yaml Don't write log messages to stdout (#3159) 2024-11-11 14:31:37 +00:00
version-help-doctor.smoke.yaml Release 0.6.8 (#3165) 2024-11-11 17:08:17 +01:00