roc/examples/cli
Joshua Warner 8b58d5cbc7 Switch to always encoding package names / paths as strings
This will simplify parsing and make it possible to have a uniform lexer for the language. Previously unquoted package names were allowed to include '-'s, which aren't valid identifiers.

In the future, we'll distinguish local paths from packages in the package-manager by looking for a ".roc" suffix, which should only be present in local paths.
2021-12-23 20:11:14 -08:00
..
platform Switch to always encoding package names / paths as strings 2021-12-23 20:11:14 -08:00
.gitignore Implement echo example 2021-08-22 16:12:54 -04:00
Echo.roc Run formatter on all examples 2021-12-21 17:17:31 -08:00
README.md Add README to examples/cli 2021-11-29 09:24:58 -05:00

Command Line Interface (CLI) Example

This is an example of how to make an extremely basic CLI in Roc.

There's not currently much documentation for the CLI platform (which also doesn't support many operations at this point!) but you can look at the modules it includes - for example, multiple other modules use the Task module, including the Stdin and Stdout modules.