A command line tool to generate CLI for your app from YAML-based schema.
cyamli [<option>]...
-
-help[=<boolean>]
,-h[=<boolean>]
(default=false
):
shows description of this app. -
-version[=<boolean>]
,-v[=<boolean>]
(default=false
):
shows version of this app.
-
generate:
holds subcommands to generate CLI code. -
list:
shows subcommands -
validate:
validates CLI schema.
holds subcommands to generate CLI code.
cyamli generate [<option>]...
-help[=<boolean>]
,-h[=<boolean>]
(default=false
):
shows description of generate subcommand.
-
dart:
generates CLI for your app written in Dart. -
docs:
generates documentation for your CLI app. -
golang:
generates CLI for your app written in Go. -
python3:
generates CLI for your app written in Python3.
generates CLI for your app written in Dart.
cyamli generate dart [<option>]...
-
-help[=<boolean>]
,-h[=<boolean>]
(default=false
):
shows description of dart subcommand. -
-out-path=<string>
(default=""
):
if specified then creates a file at the path and writes generated code, otherwise outputs to stdout. -
-schema-path=<string>
(default=""
):
if specified then reads schema file from the path, otherwise reads from stdin.
generates documentation for your CLI app.
cyamli generate docs [<option>|<argument>]... [-- [<argument>]...]
-
-all[=<boolean>]
,-a[=<boolean>]
(default=false
):
if specified then outputs documentation for all subcommands, otherwise in text format. -
-format=<string>
,-f=<string>
(default="text"
):
specifies output format of the documentation in text or markdown. -
-help[=<boolean>]
,-h[=<boolean>]
(default=false
):
shows description of docs subcommand. -
-out-path=<string>
(default=""
):
if specified then creates a file at the path and writes generated documentation, otherwise outputs to stdout. -
-schema-path=<string>
(default=""
):
if specified then reads schema file from the path, otherwise reads from stdin.
[<subcommands:string>]...
selects subcommand for which the documentation is output.
generates CLI for your app written in Go.
cyamli generate golang [<option>]...
-
-help[=<boolean>]
,-h[=<boolean>]
(default=false
):
shows description of golang subcommand. -
-out-path=<string>
(default=""
):
if specified then creates a file at the path and writes generated code, otherwise outputs to stdout. -
-package=<string>
(default="main"
):
package name where the generated file will be placed. -
-schema-path=<string>
(default=""
):
if specified then reads schema file from the path, otherwise reads from stdin.
generates CLI for your app written in Python3.
cyamli generate python3 [<option>]...
-
-help[=<boolean>]
,-h[=<boolean>]
(default=false
):
shows description of python3 subcommand. -
-out-path=<string>
(default=""
):
if specified then creates a file at the path and writes generated code, otherwise outputs to stdout. -
-schema-path=<string>
(default=""
):
if specified then reads schema file from the path, otherwise reads from stdin.
shows subcommands
cyamli list [<option>]...
-
-help[=<boolean>]
,-h[=<boolean>]
(default=false
):
shows description of list subcommand. -
-schema-path=<string>
(default=""
):
if specified then reads schema file from the path, otherwise reads from stdin.
validates CLI schema.
cyamli validate [<option>]...
-
-help[=<boolean>]
,-h[=<boolean>]
(default=false
):
shows description of validates subcommand. -
-schema-path=<string>
(default=""
):
if specified then reads schema file from the path, otherwise reads from stdin.