Idris2Doc : Pack.CmdLn.Opts

Pack.CmdLn.Opts

(source)

Definitions

optionNames : ListString
  Names of all command line options (prefixed with "-" in case of
single-character option names and with "--" in case of multi-character
option names.

Totality: total
Visibility: export
recordParsedArgs : (0c : Type) -> {auto0_ : Commandc} ->Type
  A Package of the current directory, current command, its arguments, and the
options.

Totality: total
Visibility: public export
Constructor: 
MkParsedArgs : CurDir->CommandWithArgsc->ListAdjConf->ParsedArgsc

Projections:
.cmd : ParsedArgsc->CommandWithArgsc
.curDir : ParsedArgsc->CurDir
.opts : ParsedArgsc->ListAdjConf
.curDir : ParsedArgsc->CurDir
Totality: total
Visibility: public export
curDir : ParsedArgsc->CurDir
Totality: total
Visibility: public export
.cmd : ParsedArgsc->CommandWithArgsc
Totality: total
Visibility: public export
cmd : ParsedArgsc->CommandWithArgsc
Totality: total
Visibility: public export
.opts : ParsedArgsc->ListAdjConf
Totality: total
Visibility: public export
opts : ParsedArgsc->ListAdjConf
Totality: total
Visibility: public export
getArgs' : HasIOio=>io (ListString)
  Get the arguments (not including the defacto first argument that is the
name of the binary).

Totality: total
Visibility: export
parseOpts : (0c : Type) -> {auto{conArg:5741} : Commandc} ->CurDir->ListString->EitherPackErr (ParsedArgsc)
  Given the current directory (from which pack was
invoked) parse the arguments into a command, positional arguments, and
options.

Totality: total
Visibility: export
applyArgs : (0c : Type) -> {auto{conArg:5848} : Commandc} ->MetaConfig->ParsedArgsc->EitherPackErrMetaConfig
  Given the current directory (from which pack was invoked)
and an initial config assembled from the `pack.toml` files
in scope, generates the application
config and command to run from a list of command
line arguments.

@ c : Type representing the command to run
We abstract over this type, because pack and
pack-admin accept different kinds of commands,
and both applications use this function to parse
the command line args

@ curDir : Current working directory
@ init : Initial config (possibly assebled from `pack.toml` files)
@ args : List of command line arguments

Totality: total
Visibility: export
usageInfo : String
  Application info printed with the `help` action.

Totality: total
Visibility: export