-
demo_tty, a sample of all implemented ansi features and a quick way to visually check the behaviour of the framework on a given terminal.
-
demo_boiling, ongoing sandbox on ascii animation
rebase_edit, an interactive git rebase editor, and it's associated newbase script, intended as a drop-in replacement for git rebase -i
You can browse the usage guide here
To get rebase_edit
and newbase
, you can install them from source or get them from the github release:
$ wget https://github.com/NyuB/ocli/releases/latest/download/newbase
$ wget https://github.com/NyuB/ocli/releases/latest/download/rebase_edit
$ chmod +x newbase rebase_edit
$ # Supposing ~/bin is in your PATH, replace with the desired installation root
$ mv newbase ~/bin/
$ mv rebase_edit ~/bin/
- tea, Elm-inspired application structure
- tty
- Wrappers around OCaml Stdlib termios functions
- Wrappers around ANSI terminal control sequences
- components, composable ansi widgets
- ppx_cross_match, a ppx to generate a sinle pattern from the cardinal_product of pattern tuples
- qol various quality-of-life helpers
- Linux
- opam
- terminal with termios support
opam install . --deps-only --with-test
dune build
make demo
NB: the demo includes indications to check if it is behaving correctly on your terminal
Run the tests:
make test
Update acceptance tests with the current outputs:
make test-promote
rebase provides two binaries:
- rebase_edit is the interactive rebase editor, meant to be called by git with the rebase file.
- newbase is a bash wrapper around
git rebase
. Its main purpose is to point git to rebase_edit as rebase editor along few other convenience features.
make install-newbase
Installation root can be chosen with the INSTALL_ROOT variable (defaults to $HOME/bin
). rebase_edit
and newbase
will be placed at ${INSTALL_ROOT}/rebase_edit
and ${INSTALL_ROOT}/newbase
make install-newbase INSTALL_ROOT=/somewhere/in/your/path