Command line
Usage: kcg [OPTIONS] COMMAND [ARGS]...
The command line of KCG: the Keyboard Configuration Generator.
Options:
--help Show this message and exit.
Commands:
generate Generate configuration files for a given target.
Command generate
Usage: kcg generate [OPTIONS] CONTEXT COMMAND [ARGS]...
Generate configuration files for a given target.
CONTEXT_FILE: Path to the context file. Run 'kcg help context' to know more.
Options:
-o, --out DIRECTORY Directory where to write output files. By default:
working directory.
--help Show this message and exit.
Commands:
doc Generate documentation files.
kbdmap Generate the key kbdmap file.
keymaps Generate the key map file.
klavaro Generate the config files for Klavaro.
ktouch Generate the config files for ktouch.
mac Generate config files for Mac.
map Generate the layout map in a text file.
svg Generate a picture of the layout in a svg file.
typefaster Generate the config files for typefaster.
win Generate config files for Windows.
wscons Generate the wscons file.
x Generate config files for Linux X service.
Python docs
This module configures the command line of KCG.
in this file, the word 'context' is used with two different meanings:
- one is the context object of Click, stored in variable 'ctx'. Read https://click.palletsprojects.com/en/8.1.x/api/#click.Context
- the other is the context file of KCG (this tool), which is a INI file. Its documentation is in doc/context.md
doc(ctx)
Generate documentation files.
Source code in kcg/cli.py
55 56 57 58 59 60 61 62 | |
generate(ctx, context, output_dir)
Generate configuration files for a given target.
CONTEXT_FILE: Path to the context file. Read documentation to know more.
Source code in kcg/cli.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
kbdmap()
Generate the key kbdmap file.
Source code in kcg/cli.py
139 140 141 142 | |
kcg_main_cli()
The command line of KCG: the Keyboard Configuration Generator.
Source code in kcg/cli.py
25 26 27 | |
keymaps()
Generate the key map file.
Source code in kcg/cli.py
133 134 135 136 | |
klavaro()
Generate the config files for Klavaro.
Source code in kcg/cli.py
115 116 117 118 | |
ktouch()
Generate the config files for ktouch.
Source code in kcg/cli.py
121 122 123 124 | |
mac()
Generate config files for Mac.
Source code in kcg/cli.py
97 98 99 100 | |
svg()
Generate a picture of the layout in a svg file.
Source code in kcg/cli.py
109 110 111 112 | |
typefaster()
Generate the config files for typefaster.
Source code in kcg/cli.py
127 128 129 130 | |
win(ctx, target)
Generate config files for Windows.
Source code in kcg/cli.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
wscons()
Generate the wscons file.
Source code in kcg/cli.py
145 146 147 148 | |
x(ctx, target)
Generate config files for Linux X service.
Source code in kcg/cli.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |