basic-cli icon indicating copy to clipboard operation
basic-cli copied to clipboard

A basic Command-Line Interface platform

Results 40 basic-cli issues
Sort by recently updated
recently updated
newest added

It's possible that this will be fixed with https://github.com/roc-lang/roc/pull/6859 ``` failures: ---- cli_run::module_params stdout ---- thread 'cli_run::module_params' panicked at crates/cli/tests/cli_run.rs:159:13: ___________ The roc command: "/home/username/gitrepos/roc-with-nix/roc/target/release/roc --max-threads=1 /home/username/gitrepos/roc-with-nix/roc/crates/cli/tests/module_params/app.roc --" had unexpected...

As discussed on [zulip](https://roc.zulipchat.com/#narrow/stream/231634-beginners/topic/secret.20management), there should be some kind of support for reading environment variables via dotenv files. I think there are two possibilities here. 1. Have a `.env` file...

Relates to [roc-lang/roc PR](https://github.com/roc-lang/roc/pull/6846). I tried build the platform on my machine with `./glue.sh`, but I don't have `platform/main-glue.roc`, so I'm not quiet sure what to do about that...

This needs to be investigated, use the debug compiler by replacing `rocPkgs.cli` in your flake.nix with `rocPkgs.cli-debug` and run `./jump-start.sh`. ``` + roc glue glue.roc crates ./platform/main.roc thread 'main' panicked...

``` $ roc broken.roc An internal compiler expectation was broken. This is definitely a compiler bug. Please file an issue here: a Expr::TaskAwaitBang expression was not completely removed in desugar_value_def_suffixed...

bug

``` $ ./target/release/roc run examples/args.roc --linker=legacy -- log -b 3 --num 81 args-example A calculator example of the CLI platform argument parser COMMANDS: div OPTIONS: --dividend, -n the number to...

Here is an example rust implementation from [roc-lang/roc/crates/utils/command/src/lib.rs](https://github.com/roc-lang/roc/blob/f69d39dffce472fba35681dbc8b920b3d9bf7319/crates/utils/command/src/lib.rs#L99). This will be useful for scripts to check a command exists before trying to run it. ```rust fn check_command_available(command_name: &str) -> bool...

good first issue

Once https://github.com/roc-lang/basic-cli/pull/206 is merged we should add an example with a large file as well. Running it should take about ~10 seconds on CI. Buffered is used for large files,...

Currently our buffered file reading uses a single line buffer. Using a specific buffer size can be desired in some cases. A single line can still be very long or...