OcLaunch Launch automagically


OcLaunch 0.3.0-pre2

OClaunch blog

Yesterday (04/13), version 0.3.0-pre2 went out.

Cautions:

  • This is pre-version, not ready for production.
  • The documentation is not yet completely updated, for the same reason.

Changes from version 0.3.0-pre1 are small, though quite usefull.

Limit length of elements in lists

Add argument --el to list command to trim entries in rc file longer than a given number. Indeed, with some very long command, the display is quite uncomfortable, so we truncate commands, to avoid this. For instance, this:

  Id                                                                            Command   Number of launch
 ╶──╴ ╶────────────────────────────────────────────────────────────────────────────────╴ ╶────────────────
   0   curl --silent https://btc-e.com/api/3/ticker/btc_usd  -o - | grep -o ''avg'':[...                  1
   1                                                               sysctl vm.swappiness                  1

is easier to read than that:

  Id                                                                                    Command   Number of launch
 ╶──╴ ╶────────────────────────────────────────────────────────────────────────────────────────╴ ╶────────────────
   0   curl --silent https://btc-e.com/api/3/ticker/btc_usd  -o - | grep -o ''avg':[0-9]\+.[0-9                  1
                                                                                           ]\+'
   1                                                                       sysctl vm.swappiness                  1

A default value is used for --el when nothing is specified, which can be disabled with --el 0.

More background in the commit of the changes.

Add environment variables

You can now use the following variables:

  • OC_RC, to give an path for rc (i.e. configuration) file,
  • OC_NOCOLOR, to disable color usage,
  • OC_VERB, to set verbosity.

Continuous integration

We are now using Gitlab CI for continuous integration.

On each commit, we check that everything installs correctly with opam, that tests pass, with OCaml version 4.02 and 4.03 (the beta2 actually, since this version is still in development).

Installation

With 0install

As usual, you just need to select the right binary in the list. See Installation section. 0install may also update OcLaunch automatically, depending on your settings.

With opam

If your architecture is not supported by prebuilt version, you may use opam.

opam pin add oclaunch http://download.tuxfamily.org/oclaunch/v03/oclaunch_v0.3.0-pre2_src.tar.gz

Feedback

As usual, feedback (bug, ideas and so on) is welcomed at feedback@oclaunch.eu.org or on GitLab, whatever you want.