3
|
1 |
.. _cone-cli:
|
|
2 |
|
0
|
3 |
Cone command line interface
|
|
4 |
===========================
|
|
5 |
|
|
6 |
ConE command line interface is desinged to offer different actions. A action can be anything that utilizes the ConE interface and
|
|
7 |
somehow interacts with a Configuration Project. Each action has it's own set of command line arguments.
|
|
8 |
|
|
9 |
Calling ConE
|
|
10 |
------------
|
|
11 |
|
|
12 |
All ConE commands are wrapped up by the cone.cmd, which executes internally cone_tool.py. The cone_tool.py searches for all conesub_*.py
|
|
13 |
matching files under the same scripts folder under cone installation. So basically adding a new action is just adding a new conesub_*.py file.
|
|
14 |
|
|
15 |
To get a list of all available cone commands run::
|
|
16 |
|
|
17 |
cone -h
|
|
18 |
|
|
19 |
or::
|
|
20 |
|
|
21 |
cone --help
|
|
22 |
|
|
23 |
And you will get something like this as output::
|
3
|
24 |
|
|
25 |
Usage: ConE [action] [options].
|
|
26 |
|
|
27 |
|
|
28 |
Use ConE [action] -h to get action specific help.
|
0
|
29 |
|
|
30 |
Available actions
|
3
|
31 |
Main actions for one or more configurations.
|
|
32 |
compare : Compare two configurations
|
|
33 |
fix : Run automatic fixes for configurations.
|
|
34 |
generate : Generate a configuration.
|
|
35 |
report : Create report of existing report data.
|
|
36 |
update : Update/set values to features in configuration(s).
|
|
37 |
validate : Validate a configuration, or individual confml/imp
|
0
|
38 |
|
|
39 |
|
3
|
40 |
Actions related to the configuration project maintenance.
|
|
41 |
export : Export configurations.
|
|
42 |
info : Get information about project / configurations.
|
|
43 |
merge : Merge a configuration/layer to the project.
|
|
44 |
|
|
45 |
|
|
46 |
extensions:
|
|
47 |
initvariant : Initialize a variant from a cpf.
|
|
48 |
packvariant : Pack (zip) the variant layers of a configuration.
|
|
49 |
rootflatten : Configuration root flattener.
|
0
|
50 |
|
|
51 |
|
|
52 |
ConE actions
|
|
53 |
------------
|
|
54 |
.. toctree::
|
3
|
55 |
:maxdepth: 1
|
0
|
56 |
|
3
|
57 |
generate
|
|
58 |
fix
|
0
|
59 |
compare
|
3
|
60 |
report
|
|
61 |
update
|
|
62 |
validate
|
|
63 |
export
|
0
|
64 |
merge
|
3
|
65 |
info
|
|
66 |
initvariant
|
|
67 |
rootflatten
|
0
|
68 |
|