Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

A basic CLI-setup for ReasonML with support for commands

Notifications You must be signed in to change notification settings

Iteam1337/reasonml-cli-advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reasonml-cli-advanced

A semi-advanced CLI example, built with ReasonML.

Getting started

Clone this repository and cd into it.

npm i -g esy@latest
esy
esy start -- --greet=<yourName>
esy start -- --help
esy test

Folder structure

File Description
esy.json If you're used to a NPM-like worfklow, esy.json is your package.json and specifies all dependencies and scripts.
*/dune The build system. Specify dependencies and more. Docs.
src/cli.re Our main library (dune). It's specified as a library to be able to be used for the tests as well.
bin/app.re Our main executable (dune). Uses our own made cli-library.
tests/cli.re Our only test file (dune). Uses our own made cli-library and OCaml-library alcotest as our testrunner.
cli.opam Needed for dune to pick up src/cli.re as a libary.

Dependencies

About

A basic CLI-setup for ReasonML with support for commands

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages