[commits] [Wiki] created: Doc/Dev/HordeCliApplication

Ralf Lang (B1 Systems GmbH) lang at b1-systems.de
Thu Sep 1 06:46:48 UTC 2022


rlang  Thu, 01 Sep 2022 06:46:48 +0000

Created page: https://wiki.horde.org/Doc/Dev/HordeCliApplication

+Horde_Cli_Application

"Library for creating command line applications" - A kernel to build  
CLI applications from Horde libraries.

{{Horde_Argv}} is used to define parsers for commandline arguments  
given to a program. It bisects a command line into positional  
arguments and options: shorthand (-h) or long form (--help), flags or  
typed values (--format=xml) and supports printing out usage help or  
validating commandlines against value constraints.
{{Horde_Cli}} provides utilities for input and output on a text  
terminal command line, using text colors and background colors where  
available or falling back to simple text, wrapping to screen width etc.
{{Horde_Cli_Modular}} provides tools to bundle commandline parsing and  
input/output into reusable, pluggable modules that each represent one  
command with appropriate switches and may have sub commands.

Integrating these utilities requires repetitive programming work.  
Horde_Cli_Application can facilitate putting the different parts  
together to an actual application that does something.

++Introduction



++Structure



+++Setup


++Writing simple CLIs with cli_application

++Writing multi-command CLIs


++Examples




More information about the commits mailing list