To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
Library
Module
Module type
Parameter
Class
Class type
Create a script that mostly behaves like "git"
, it concatenates its name with its first argument to call "${0}-${1}"
.
val make :
?aliases:(str t * str t) list ->
name:string ->
description:string ->
unit ->
unit Genspio__Language.t
Make a “toplevel” script that behaves a bit like "git"
by calling name ^ "-${1}"
. The search for the argument can be “hijacked” with the list of ~aliases
; with ~name:"hello"
and ~aliases:[str "W", str "wolrd"]
, when "hello W"
is called, the generated script with lool for "hello-world"
in the "$PATH"
.
Just like scripts made with Script_with_describe
, the ~description
argument is used to answer the "--describe"
command line option.
When called without arguments, with "-h"
, "-help"
, or with "--help"
, the script lists all the commands it can find and the aliases. E.g.:
usage: cosc <cmd> [OPTIONS/ARGS] Script that is a bit like Docker-compose but with GNU-Screen. Sub-commands: * cosc-attach: Attach to the Screen being managed. * cosc-configuration: Manage the configuration. * cosc-example: Show or run a full example. * cosc-kill: Kill Jobs or the whole Screen session (-a). * cosc-logs: Show logs for one or more jobs. * cosc-manual: Show the manual. * cosc-start: Start all or a given list of jobs. * cosc-status: Get the status(es) of the processes. * cosc-version: Show the version information. Aliases: * config -> configuration * man -> manual
See also the Service Composer Example (a.k.a. "cosc"
) for many uses of this function.